de.uni_paderborn.robots.robotArenaInterface
Class AbstractRobotAction

java.lang.Object
  |
  +--de.uni_paderborn.robots.robotArenaInterface.AbstractRobotAction
Direct Known Subclasses:
ExchangeAction, MoveAction, NoAction, PickUpAction, PutAction, RotateAction

public abstract class AbstractRobotAction
extends java.lang.Object

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

AbstractRobotAction

public AbstractRobotAction()