gov.nasa.gsfc.drl.rtstps.core.status
Class IntegerStatusItem

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.status.StatusItem
      extended by gov.nasa.gsfc.drl.rtstps.core.status.IntegerStatusItem
All Implemented Interfaces:
java.io.Serializable

public final class IntegerStatusItem
extends StatusItem
implements java.io.Serializable

This is an integer status item. It usually holds counters.

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 int value
          The 32-bit status value.
 
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.status.StatusItem
clearable
 
Constructor Summary
IntegerStatusItem(java.lang.String label)
          Create an IntegerStatusItem with the given name.
 
Method Summary
 void clear()
          Zero this status item.
 int getIntValue()
          Get this item's value as aN integer.
 java.lang.String getValue()
          Get this item's value as a string.
 
Methods inherited from class gov.nasa.gsfc.drl.rtstps.core.status.StatusItem
getName, isClearable, setClearable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public int value
The 32-bit status value. It is public because the RT-STPS nodes that set it will access it directly.


serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

IntegerStatusItem

public IntegerStatusItem(java.lang.String label)
Create an IntegerStatusItem with the given name.

Method Detail

getValue

public final java.lang.String getValue()
Get this item's value as a string.

Specified by:
getValue in class StatusItem

getIntValue

public final int getIntValue()
Get this item's value as aN integer.


clear

public void clear()
Zero this status item. Nothing happens if the item is not clearable.

Specified by:
clear in class StatusItem