public class CommandStatus extends java.lang.Object implements TSimInformation
Modifier and Type | Field and Description |
---|---|
static int |
ILLEGAL_SPEED |
static int |
NO_SUCH_POS |
static int |
NO_SUCH_SWITCH |
static int |
NO_SUCH_TRAIN |
static int |
OK |
protected int |
status |
static int |
TRAIN_ON_SWITCH |
Constructor and Description |
---|
CommandStatus(int status)
Creates a new CommandStatus message.
|
Modifier and Type | Method and Description |
---|---|
int |
getStatus()
Returns the status of the command.
|
java.lang.String |
toString()
Returns the string representation of the CommandStatus class.
|
public static final int OK
public static final int ILLEGAL_SPEED
public static final int NO_SUCH_TRAIN
public static final int NO_SUCH_SWITCH
public static final int NO_SUCH_POS
public static final int TRAIN_ON_SWITCH
protected int status
public CommandStatus(int status)
status
- the status of the command.public int getStatus()
public java.lang.String toString()
toString
in class java.lang.Object