Package org.simplesim.core.messaging
Interface MessageForwardingStrategy
- All Known Implementing Classes:
DirectMessageForwarding,RecursiveMessageForwarding,RoutingMessageForwarding
public interface MessageForwardingStrategy
Interface for various strategies to forward messages during simulation
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classException to be thrown if there is an error in the process of message forwarding. -
Method Summary
Modifier and TypeMethodDescriptionvoidforwardMessages(Collection<Agent> sender) Dies the message forwarding.default Collection<Port>listPortsWithOutgoingMsg(Collection<Agent> agentList) Build a collection of all ports with outgoing messages based on the collection of sending agents.
-
Method Details
-
forwardMessages
Dies the message forwarding.- Parameters:
sender- collection of senders where the message originate
-
listPortsWithOutgoingMsg
Build a collection of all ports with outgoing messages based on the collection of sending agents.- Parameters:
agentList- collection of agents with outgoing messages- Returns:
- collection of outports with outgoing messages to be processed
-