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
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
-
DirectMessageForwarding
public DirectMessageForwarding()
-
-
Method Details
-
forwardMessages
Description copied from interface:MessageForwardingStrategyDies the message forwarding.- Specified by:
forwardMessagesin interfaceMessageForwardingStrategy- Parameters:
agentList- collection of senders where the message originate
-