|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectits.backbone.domain.SensorData
its.backbone.domain.tms.TmsData
its.backbone.domain.tms.TmsLoop
Encapsulates a TMS loop sensor in packed format, plus other fields necessary to support SDD. This is an immutable class which may only be initialized from a TMS data block.
Should this be extended to include (a) a ref to the TmsSensor, (b) the sensor ID, (c) the timestamp, (d) a ref to the TmsData? Or should there maybe be another type which includes all this stuff through aggregation? Last change: NSF 3 Feb 98 9:15 am
| Field Summary | |
static int |
BAD_LOOP
flag value indicating the loop is bad. |
static int |
CHATTER
flag value indicating chatter (> 3 counts / second) |
static int |
DATA_GOOD
flag value indicating data is good. |
static int |
DISABLED
flag value indicating the the loop was disable by the operator. |
static int |
OUTSIDE_ENVELOPE
flag value indicating that the values from the sensor are outside an externally defined volume/occupancy envelope. |
static int |
SHORT_PULSE
flag value indicating short pulse (< 1/15 sec) |
| Fields inherited from class its.backbone.domain.tms.TmsData |
INCIDENT_CONTINUING, INCIDENT_NONE, INCIDENT_OCCURRED, INCIDENT_TENTATIVE |
| Fields inherited from class its.backbone.domain.SensorData |
dataBlock, MASK_EIGHT_BIT, MASK_FIVE_BIT, MASK_FOUR_BIT, MASK_ONE_BIT, MASK_SEVEN_BIT, MASK_SIX_BIT, MASK_THREE_BIT, MASK_TWO_BIT, rawData |
| Constructor Summary | |
TmsLoop(DataBlock dataBlock)
Constructs a TmsLoop object using the 3 bytes of data at offset in dataBlock. |
|
| Method Summary | |
int |
getFlag()
|
int |
getIncidentDetect()
|
java.lang.String |
getName()
|
int |
getNLoops()
|
float |
getOccupancy()
|
int |
getPackedSize()
|
int |
getRawVolume()
|
int |
getScanCount()
|
TmsTimestamp |
getTimestamp()
|
int |
getVolume()
|
boolean |
isValid()
Checks to see if data meets validity constraints. |
java.lang.String[] |
processSensor(int offset,
java.lang.String sensor_id)
processes an instance of a sensor |
protected void |
read(int offset)
reads values for a TmsLoop object from the 3 bytes of data at offset in dataBlock. |
| Methods inherited from class its.backbone.domain.tms.TmsData |
checkOffsetBounds |
| Methods inherited from class its.backbone.domain.SensorData |
setRawData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DATA_GOOD
public static final int SHORT_PULSE
public static final int CHATTER
public static final int OUTSIDE_ENVELOPE
public static final int DISABLED
public static final int BAD_LOOP
| Constructor Detail |
public TmsLoop(DataBlock dataBlock)
throws java.lang.IllegalArgumentException
offset in dataBlock.
dataBlock - byte array containing data
BadOffsetException - if offset is less than
the header size or greater than the
data block size
java.lang.IllegalArgumentException| Method Detail |
protected void read(int offset)
throws BadOffsetException
offset in dataBlock.
read in class TmsDataoffset - offset within dataBlock
BadOffsetException - if offset is less than
the header size or greater than the
data block size
public java.lang.String[] processSensor(int offset,
java.lang.String sensor_id)
throws java.lang.IllegalArgumentException,
BadOffsetException
SensorData
processSensor in class SensorDataoffset - the offset into the blobsensor_id - the sensor id
java.lang.IllegalArgumentException - thrown if bad sensor id
BadOffsetException - thrown if offset is badpublic TmsTimestamp getTimestamp()
getTimestamp in class TmsDatapublic int getIncidentDetect()
public int getNLoops()
public int getFlag()
public final int getScanCount()
public int getRawVolume()
public float getOccupancy()
public int getVolume()
public int getPackedSize()
getPackedSize in class SensorDatapublic java.lang.String getName()
getName in class TmsDatapublic boolean isValid()
isValid in class TmsData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||