Class MessageDistributed
- java.lang.Object
-
- xdevs.core.simulation.distributed.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 Summary
Constructors Constructor Description MessageDistributed()
Constructor for the distributed message.MessageDistributed(int command, String message)
Constructor for the distributed message.MessageDistributed(int command, String message, Collection<?> valuesPort)
Constructor for the distributed message.MessageDistributed(String message)
Constructor for the distributed message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCommand()
Get the command for the message.String
getMessage()
Get the message for the message.Collection<?>
getValuesPort()
Get the collection of values for the message.void
setCommand(int command)
Set the command for the message.void
setMessage(String message)
Set the message for the message.void
setValuesPort(Collection<?> valuesPort)
Set the collection of values for the message.String
toString()
-
-
-
Constructor Detail
-
MessageDistributed
public MessageDistributed(int command, String message, Collection<?> valuesPort)
Constructor for the distributed message.- Parameters:
command
- Command for the messagemessage
- Message for the messagevaluesPort
- Collection of values for the message
-
MessageDistributed
public MessageDistributed(int command, String message)
Constructor for the distributed message.- Parameters:
command
- Command for the messagemessage
- 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
-
-