edu.cmu.cs.able.gaugeInfrastructure.util
Class GaugeID

java.lang.Object
  |
  +--edu.cmu.cs.able.gaugeInfrastructure.util.GaugeID
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GaugeEvent

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

This class is captures the identification for a gauge.

See Also:
Serialized Form

Field Summary
 java.lang.String gaugeName
          The gauge's name
 java.lang.String gaugeType
          The gauge's type
 java.lang.String modelName
          The model that this gauge is attached to
 java.lang.String modelType
          The type of the model that this gauge is attached to
 java.lang.String uid
          The unique identifier of this gauge
 
Constructor Summary
GaugeID()
          Creates new GaugeID
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns whether the two GaugeID's are equal
 java.lang.String toString()
          Returns a string representation of the GaugeID
 void xferGaugeID(GaugeID gid)
          Transfers one gauge's ID into this ID.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

uid

public java.lang.String uid
The unique identifier of this gauge

gaugeName

public java.lang.String gaugeName
The gauge's name

gaugeType

public java.lang.String gaugeType
The gauge's type

modelName

public java.lang.String modelName
The model that this gauge is attached to

modelType

public java.lang.String modelType
The type of the model that this gauge is attached to
Constructor Detail

GaugeID

public GaugeID()
Creates new GaugeID
Method Detail

xferGaugeID

public void xferGaugeID(GaugeID gid)
Transfers one gauge's ID into this ID.
Parameters:
gid - The ID of the gauge to be transferred

equals

public boolean equals(java.lang.Object obj)
Returns whether the two GaugeID's are equal
Overrides:
equals in class java.lang.Object
Parameters:
obj - The GaugeID for comparison
Returns:
Whether the gauges are equal

toString

public java.lang.String toString()
Returns a string representation of the GaugeID
Overrides:
toString in class java.lang.Object
Returns:
The string representation