wworld
Class Action
java.lang.Object
|
+--wworld.Action
- public class Action
- extends java.lang.Object
A class that defines the Actions allowed to the agents. Allows the
actions to be converted to strings for printing purposes.
Method Summary |
java.lang.String |
toString(int action)
Describes the action as a String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
START_GAME
public static int START_GAME
GOFORWARD
public static int GOFORWARD
TURN_RIGHT
public static int TURN_RIGHT
TURN_LEFT
public static int TURN_LEFT
GRAB
public static int GRAB
SHOOT
public static int SHOOT
CLIMB
public static int CLIMB
SIT
public static int SIT
END_TRIAL
public static int END_TRIAL
END_SIMULATION
public static int END_SIMULATION
NO_OP
public static int NO_OP
- This variable is used by the simulator to indicate that the client
did not send any action
NO_ACTION
public static int NO_ACTION
- This variable is used internally by the simulator.The client is
advised not to use this action.
Action
public Action()
toString
public java.lang.String toString(int action)
- Describes the action as a String.
- Parameters:
action
- as an integer
- Returns:
- String describing the action