|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDetectorEvent
A detector event is created when a vehicle occupies or unoccupies a loop detector. It records the time of the event, to the nearest millisecond, and the direction of the event, up or down.
| Field Summary | |
|---|---|
static IDetectorEvent[] |
ZERO
A static zero-length array, created for convenience, and to save memory |
| Method Summary | |
|---|---|
ILoopOccupier |
loopOccupier()
The loop-occupier, normally a vehicle that caused the detector event. |
int |
ms()
The (integer) milliseconds of the event. |
double |
t()
The time in seconds of the event, where 0.0 = 00:00:00. |
boolean |
up()
Returns true if this was a loop-occupy event, or false if it was a loop-unoccupy event. |
| Field Detail |
|---|
static final IDetectorEvent[] ZERO
| Method Detail |
|---|
ILoopOccupier loopOccupier()
boolean up()
That is, specifies the direction of the event where:
int ms()
double t()
For example, an event at 08:05:32.345 would return
t = (8 * 3600) + (5 * 60) +(32.345) = 29132.345
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||