public class Message
extends java.lang.Object
null
references given as parameters, the String "----" is taken
instead.Constructor and Description |
---|
Message(Model origin,
java.lang.String description,
TimeInstant time)
Constructs a message with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Returns the textual description of this message as a String.
|
java.lang.String |
getExperimentName() |
java.lang.String |
getModelName()
Returns the name of the model that produced this message.
|
TimeInstant |
getSendTime()
Returns the time the message was (created) sent as a TimeInstant object.
|
java.lang.String |
getTime()
Returns the point of simulation time that this message was created as a
String.
|
java.lang.String |
toString()
Overrides the Object's
toString() method to return the
message's description when this object is used as a String. |
public Message(Model origin, java.lang.String description, TimeInstant time)
origin
- Model : The model that produced this messagedescription
- java.lang.String : The actual message texttime
- TimeInstant : The point in simulation time this message was
createdpublic java.lang.String getDescription()
public java.lang.String getModelName()
public java.lang.String getExperimentName()
public TimeInstant getSendTime()
public java.lang.String getTime()
public java.lang.String toString()
toString()
method to return the
message's description when this object is used as a String.toString
in class java.lang.Object