Package org.simplesim.core.messaging
Class RoutingMessageForwarding
java.lang.Object
org.simplesim.core.messaging.RoutingMessageForwarding
- All Implemented Interfaces:
MessageForwardingStrategy
Implementation of
ForwardingStrategy for the routing concept.
This implementation first assigns outports with messages to layers according
to the level of their parent Domain. Then forwarding starts at
the bottom most port and works its way up to the root. In a second step,
messages are copied in the root node of the model tree. In a third step,
messages are forwarded top-down in a similar way.
Note: This strategy only works with models using the routing concept.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.simplesim.core.messaging.MessageForwardingStrategy
MessageForwardingStrategy.ForwardingFailureException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforwardMessages(Collection<Agent> agentList) Dies the message forwarding.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.simplesim.core.messaging.MessageForwardingStrategy
listPortsWithOutgoingMsg
-
Constructor Details
-
RoutingMessageForwarding
-
-
Method Details
-
forwardMessages
Description copied from interface:MessageForwardingStrategyDies the message forwarding.- Specified by:
forwardMessagesin interfaceMessageForwardingStrategy- Parameters:
agentList- collection of senders where the message originate
-