public abstract class IRobotState extends Object
#handleEvent(Sensor, short)
method.
method.Constructor and Description |
---|
IRobotState(String name)
Automatically puts the state into the
StateBasedController.allStates structure. |
Modifier and Type | Method and Description |
---|---|
void |
enterState()
This method is called each time the state is set (so can be called multiple times).
|
String |
getName() |
abstract void |
handleEvent(iRobotCommands.Sensor sensor,
short reading)
Abstract class to be overridden by each concrete state.
|
private String name
public IRobotState(String name)
StateBasedController.allStates
structure.name
- public abstract void handleEvent(iRobotCommands.Sensor sensor, short reading)
sensor
- reading
- public void enterState()
public String getName()