Class MessageDistributed

  • All Implemented Interfaces:
    Serializable

    public class MessageDistributed
    extends Object
    implements Serializable
    Message for distributed simulation. This class implements a message for distributed simulation. It contains a command, a message and a collection of values.
    See Also:
    Serialized Form
    • Constructor Detail

      • MessageDistributed

        public MessageDistributed​(int command,
                                  String message,
                                  Collection<?> valuesPort)
        Constructor for the distributed message.
        Parameters:
        command - Command for the message
        message - Message for the message
        valuesPort - Collection of values for the message
      • MessageDistributed

        public MessageDistributed​(int command,
                                  String message)
        Constructor for the distributed message.
        Parameters:
        command - Command for the message
        message - Message for the message
      • MessageDistributed

        public MessageDistributed​(String message)
        Constructor for the distributed message.
        Parameters:
        message - Message for the message
      • MessageDistributed

        public MessageDistributed()
        Constructor for the distributed message.
    • Method Detail

      • getCommand

        public int getCommand()
        Get the command for the message.
        Returns:
        Command for the message
      • setCommand

        public void setCommand​(int command)
        Set the command for the message.
        Parameters:
        command - Command for the message
      • getMessage

        public String getMessage()
        Get the message for the message.
        Returns:
        Message for the message
      • setMessage

        public void setMessage​(String message)
        Set the message for the message.
        Parameters:
        message - Message for the message
      • getValuesPort

        public Collection<?> getValuesPort()
        Get the collection of values for the message.
        Returns:
        Collection of values for the message
      • setValuesPort

        public void setValuesPort​(Collection<?> valuesPort)
        Set the collection of values for the message.
        Parameters:
        valuesPort - Collection of values for the message