Interface MessageForwardingStrategy

All Known Implementing Classes:
DirectMessageForwarding, RecursiveMessageForwarding, RoutingMessageForwarding

public interface MessageForwardingStrategy
Interface for various strategies to forward messages during simulation
  • Method Details

    • forwardMessages

      void forwardMessages(Collection<Agent> sender)
      Dies the message forwarding.
      Parameters:
      sender - collection of senders where the message originate
    • listPortsWithOutgoingMsg

      default Collection<Port> listPortsWithOutgoingMsg(Collection<Agent> agentList)
      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