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

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

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

This is a long integer status item. It usually holds counters.

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 long value
          The 64-bit status value.
 
Fields inherited from class gov.nasa.gsfc.drl.rtstps.core.status.StatusItem
clearable
 
Constructor Summary
LongStatusItem(java.lang.String label)
          Create a LongStatusItem with the given name.
LongStatusItem(java.lang.String label, long initialValue)
          Create a LongStatusItem with the given name and an initial value.
 
Method Summary
 void clear()
          Zero this status item.
 long getLongValue()
          Get this item's value as a long 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 long value
The 64-bit status value. It is public because the RT-STPS nodes that set it will access it directly. Other users, such as gadgets within viewers, should please use the getLongValue() method instead. There is no assurance that this value will remain public.


serialVersionUID

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

LongStatusItem

public LongStatusItem(java.lang.String label)
Create a LongStatusItem with the given name.


LongStatusItem

public LongStatusItem(java.lang.String label,
                      long initialValue)
Create a LongStatusItem with the given name and an initial value.

Method Detail

getValue

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

Specified by:
getValue in class StatusItem

getLongValue

public final long getLongValue()
Get this item's value as a long integer.


clear

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

Specified by:
clear in class StatusItem