Package org.simplesim.core.messaging
Class DirectMessageForwarding
java.lang.Object
org.simplesim.core.messaging.DirectMessageForwarding
- All Implemented Interfaces:
MessageForwardingStrategy
Strategy for direct message forwarding.
Forwards messages along exactly one connection. Use this implementation for graphs, intermeshed networks and when agents are connected directly without a model hierarchy.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.simplesim.core.messaging.MessageForwardingStrategy
MessageForwardingStrategy.ForwardingFailureException
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
forwardMessages
(Collection<Agent> agentList) Dies the message forwarding.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.simplesim.core.messaging.MessageForwardingStrategy
listPortsWithOutgoingMsg
-
Constructor Details
-
DirectMessageForwarding
public DirectMessageForwarding()
-
-
Method Details
-
forwardMessages
Description copied from interface:MessageForwardingStrategy
Dies the message forwarding.- Specified by:
forwardMessages
in interfaceMessageForwardingStrategy
- Parameters:
agentList
- collection of senders where the message originate
-