|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--de.uni_paderborn.robots.robotArenaInterface.AbstractRobotAction
This is the abstract superclass of every action class returned by the robot! Class renamed as AbstractAction is defined in SWING ! Example "How to identify the returned Action" : action = Robot.getCommand(robotData); if (!(action instanceof AbstractAction)) throw IllegalActionException; // "action" can not be null anymore because // it is an AbstractAction, but null isn't. if (action instanceof MoveAction) { // move Robot code goes here // } if (action instanceof RotateAction) { // rotate Robot code goes here // } ....
| Constructor Summary | |
AbstractRobotAction()
|
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractRobotAction()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||