|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Command | +--GotoPositionCommand
A class that encapsulates a command to move the Robot to a defined position. 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 | |
GotoPositionCommand(int lineNumber,
java.lang.String name)
Creates a new GotoPositionCommand, which will move the robot to a defined position, associated with the given name. |
Method Summary | |
void |
Execute()
Executes the Command's function. |
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 GotoPositionCommand(int lineNumber, java.lang.String name)
lineNumber
- the source line for this command.name
- the name of the perviously defined Robot position.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 |