|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPER.basicGUI.Sequencer
| Field Summary | |
static int |
ERROR
mission ended due to rover error |
static int |
INCOMPLETE
mission terminated early: tried to leave the exhibit |
static int |
INTERRUPTED
mission terminated early: ran into something early (also for e-stop) |
static int |
NO_MISSION
no missions have been run; sequencer is waiting for a new mission |
static int |
NO_ROCK
mission terminated early: no rock was found |
static int |
POSSIBLE_ERROR
mission ended due to a possible error. |
static int |
RUNNING
mission is still running |
static int |
SUCCESS
mission completed successfully |
| Constructor Summary | |
Sequencer(Rover rov)
Creates a new instance of Sequencer |
|
| Method Summary | |
Action |
getCurrentAction()
Returns the Action that is currently being executed, or null if no such Action exists. |
int |
getStatus()
Return the current status of the sequencer (e.g. RUNNING). |
boolean |
runA()
|
boolean |
runAction(Action a)
Begin execution of an action. |
void |
setStatus(int s)
|
void |
stop()
Immediately stop the current mission. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NO_MISSION
public static final int RUNNING
public static final int SUCCESS
public static final int NO_ROCK
public static final int INCOMPLETE
public static final int INTERRUPTED
public static final int ERROR
public static final int POSSIBLE_ERROR
| Constructor Detail |
public Sequencer(Rover rov)
| Method Detail |
public boolean runAction(Action a)
stop first)public boolean runA()
public int getStatus()
public void setStatus(int s)
public void stop()
public Action getCurrentAction()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||