|
||||||||||
| 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.TmsStation
Encapsulates a TMS station in packed format Last change: NSF 3 Feb 98 9:16 am
| Field Summary | |
static int |
DATA_USABLE
value for flag indicating data is usable. 0 means it is not usable. |
int |
flag
validity flag (1 = good) |
int |
incidentDetect
was an incident reported? |
static int |
MAX_LOOPS
Maximum number of loops which can report |
static int |
MAX_SCAN_COUNT
Max scan count |
static int |
MAX_VOLUME
Max 20 second volume |
int |
nLoops
number of loops reporting |
int |
scanCount
occupancy |
int |
volume
number of vehicles counted for all loops in 20 seconds |
| 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 | |
TmsStation(DataBlock dataBlock)
Constructs a Tmsstation 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()
return volume in vehicles/hour, average of loops |
boolean |
isValid()
Checks to see if data passes 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 TmsStation 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 int incidentDetect
public int nLoops
public int scanCount
public int flag
public int volume
public static final int DATA_USABLE
public static final int MAX_LOOPS
public static final int MAX_SCAN_COUNT
public static final int MAX_VOLUME
| Constructor Detail |
public TmsStation(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 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 | |||||||||