A C G I S T X Y 

A

ACTIVE - Static variable in class TSim.SensorEvent
 

C

CommandException - Exception in TSim
Thrown when a command to TSim fails.
CommandException(String) - Constructor for exception TSim.CommandException
Constructs an CommandException with the specified detailed error message.

G

getInstance() - Static method in class TSim.TSimInterface
Returns the single instance (singleton pattern).
getSensor(int) - Method in class TSim.TSimInterface
Blocks the calling thread until the specified train passes a sensor.
getStatus() - Method in class TSim.SensorEvent
Returns the status of the sensor; either ACTIVE or INACTIVE.
getTrainId() - Method in class TSim.SensorEvent
Returns the id of the train affecting the sensor.
getXpos() - Method in class TSim.SensorEvent
Returns the x coordinate of the affected sensor.
getYpos() - Method in class TSim.SensorEvent
Returns theyx coordinate of the affected sensor.

I

INACTIVE - Static variable in class TSim.SensorEvent
 
init(InputStream, OutputStream) - Static method in class TSim.TSimInterface
 

S

SensorEvent - Class in TSim
SensorEvent represents the event of a train passing over a sensor.
SensorEvent(int, int, int, int) - Constructor for class TSim.SensorEvent
Creates a new SensorEvent for a specific train and sensor.
setDebug(boolean) - Method in class TSim.TSimInterface
Turns on and off printing of debug info
setSpeed(int, int) - Method in class TSim.TSimInterface
Sets the speed of a train.
setSwitch(int, int, int) - Method in class TSim.TSimInterface
Sets the direction of the specified switch.
status - Variable in class TSim.SensorEvent
 
SWITCH_LEFT - Static variable in class TSim.TSimInterface
 
SWITCH_RIGHT - Static variable in class TSim.TSimInterface
 

T

toString() - Method in class TSim.SensorEvent
 
trainId - Variable in class TSim.SensorEvent
 
TSim - package TSim
 
TSimInformation - Interface in TSim
Umbrella type for messages from TSim.
TSimInterface - Class in TSim
The TSimInterface is the intended interface between TSim and the laboration.

X

xPos - Variable in class TSim.SensorEvent
 

Y

yPos - Variable in class TSim.SensorEvent
 
A C G I S T X Y 
Skip navigation links