visidia.simulation.process.messages
Class BooleanMessage

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

public class BooleanMessage
extends Message

This class represents a message containing a boolean.

See Also:
Serialized Form

Constructor Summary
BooleanMessage(boolean value)
          Instantiates a new boolean message.
BooleanMessage(boolean data, MessageType type)
          Instantiates a new boolean message.
 
Method Summary
 java.lang.Object clone()
          Gives a copy (a clone) of this object.
 boolean data()
          Data.
 java.lang.Object getData()
          the returned object is a new Boolean initialized with the value of data.
 java.lang.String toString()
          Returns a string representation of the message.
 boolean value()
          Value.
 
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

BooleanMessage

public BooleanMessage(boolean value)
Instantiates a new boolean message.

Parameters:
value - the value

BooleanMessage

public BooleanMessage(boolean data,
                      MessageType type)
Instantiates a new boolean message.

Parameters:
data - the data
type - the type
Method Detail

value

public boolean value()
Value.

Returns:
true, if successful

data

public boolean data()
Data.

Returns:
true, if successful

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

getData

public java.lang.Object getData()
the returned object is a new Boolean initialized with the value of data.

Specified by:
getData in class Message
Returns:
the data

toString

public java.lang.String toString()
Description copied from class: Message
Returns a string representation of the message. This is used for the visualization. For the visualization, it is important to provide a nice implementation for the this.toString() method.

Specified by:
toString in class Message
Returns:
the string