com.goldenhammer.modality
Class ModalityStatus

java.lang.Object
  extended bycom.goldenhammer.modality.ModalityStatus
All Implemented Interfaces:
java.io.Serializable

public class ModalityStatus
extends java.lang.Object
implements java.io.Serializable

This class represents the current status of a Modality contained within a SimulationNode

See Also:
Serialized Form

Constructor Summary
ModalityStatus(java.lang.String node, java.lang.String modality, float status)
          Constructor
 
Method Summary
 java.lang.String getModalityID()
          Gets the id of the modality
 float getModalityStatus()
          Gets the status of the modality.
 java.lang.String getNodeID()
          Gets the id of the node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModalityStatus

public ModalityStatus(java.lang.String node,
                      java.lang.String modality,
                      float status)
Constructor

Parameters:
node - The id of the node
modality - The id of the modality
status - The status of the modality
Method Detail

getModalityID

public java.lang.String getModalityID()
Gets the id of the modality

Returns:
the id of the modality

getModalityStatus

public float getModalityStatus()
Gets the status of the modality. If the status equals -1, or Modality.STOPPED, then the simulation for that modality has been terminated

Returns:
the status of the modality

getNodeID

public java.lang.String getNodeID()
Gets the id of the node

Returns:
the id of the node