Package org.simplesim.core.messaging
Class RecursiveMessageForwarding
java.lang.Object
org.simplesim.core.messaging.RecursiveMessageForwarding
- All Implemented Interfaces:
MessageForwardingStrategy
Recursive version of a
ForwardingStrategy
.
This implementation starts at all outports with messages and works its way through the connected ports. With this strategy some ports may be called several times.
This implementation generally should work with all types of ports but might be less efficient than more specialized strategies.
-
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
-
RecursiveMessageForwarding
public RecursiveMessageForwarding()
-
-
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
-