|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTSim.SensorEvent
public class SensorEvent
SensorEvent represents the event of a train passing over a sensor. Every time a train passes over a sensor first an ACTIVE event is created followed by an INACTIVE event when the train leaves the sensor.
Field Summary | |
---|---|
static int |
ACTIVE
Sensor event type: leading end of train has hit sensor. |
static int |
INACTIVE
Sensor event type: trailing end of train has left sensor. |
Method Summary | |
---|---|
int |
getStatus()
Returns the status of the sensor; either ACTIVE or INACTIVE. |
int |
getXpos()
Returns the x coordinate of the affected sensor. |
int |
getYpos()
Returns the y coordinate of the affected sensor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ACTIVE
public static final int INACTIVE
Method Detail |
---|
public int getXpos()
public int getYpos()
public int getStatus()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |