visidia.simulation.process.messages
Class VectorMessage

java.lang.Object
  extended by visidia.simulation.process.messages.Message
      extended by visidia.simulation.process.messages.VectorMessage
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class VectorMessage
extends Message

This class represents a message containing a set of information which can be of different type.

See Also:
Serialized Form

Constructor Summary
VectorMessage(java.util.Vector v)
          Instantiates a new vector message.
VectorMessage(java.util.Vector v, MessageType type)
          Instantiates a new vector message.
 
Method Summary
 java.lang.Object clone()
          Gives a copy (a clone) of this object.
 java.util.Vector data()
          Gets the data.
 java.lang.Object getData()
          Each message has a data which can be accessed by the getData() method.
 java.lang.String toString()
          The Vector Message representation is : "< + element0 + element1 + ... + elementN + >"
 
Methods inherited from class visidia.simulation.process.messages.Message
getMsgClock, getType, getVisualization, setMsgClock, setType, setVisualization
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VectorMessage

public VectorMessage(java.util.Vector v)
Instantiates a new vector message.

Parameters:
v - the vector

VectorMessage

public VectorMessage(java.util.Vector v,
                     MessageType type)
Instantiates a new vector message.

Parameters:
v - the vector
type - the type
Method Detail

data

public java.util.Vector data()
Gets the data.

Returns:
the vector

getData

public java.lang.Object getData()
Description copied from class: Message
Each message has a data which can be accessed by the getData() method.

Specified by:
getData in class Message
Returns:
the data

clone

public java.lang.Object clone()
Description copied from class: Message
Gives a copy (a clone) of this object.

Specified by:
clone in class Message
Returns:
the object

toString

public java.lang.String toString()
The Vector Message representation is : "< + element0 + element1 + ... + elementN + >"

Specified by:
toString in class Message
Returns:
the string