|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Command | +--GotoNamedXYZCommand
A class that encapsulates a command to move the robot to a defined endpoint. This class is a concrete implementation of the Command class, and is a part of REMOTE's implementation of the Command Pattern, as demonstrated in Gamma et al (page 236).
SimulationEngine
,
CommandQueue
Constructor Summary | |
GotoNamedXYZCommand(int lineNumber,
java.lang.String name)
Creates a new GotoNamedXYZCommand, which will move the Robot to the previously defined endpoint associated with the given name. |
Method Summary | |
void |
Execute()
Moves the Robot to a previously defined endpoint, as saved in the XYZTable singleton instance. |
Methods inherited from class Command |
getSourceLine,
setSourceLine |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public GotoNamedXYZCommand(int lineNumber, java.lang.String name)
lineNumber
- the source line for this command.name
- the name of the endpoint definition.Method Detail |
public void Execute() throws java.lang.Exception
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |