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.


Field Summary
static int CLIMB
           
static int END_SIMULATION
           
static int END_TRIAL
           
static int GOFORWARD
           
static int GRAB
           
static int NO_ACTION
          This variable is used internally by the simulator.The client is advised not to use this action.
static int NO_OP
          This variable is used by the simulator to indicate that the client did not send any action
static int SHOOT
           
static int SIT
           
static int START_GAME
           
static int TURN_LEFT
           
static int TURN_RIGHT
           
 
Constructor Summary
Action()
           
 
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
 

Field Detail

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.

Constructor Detail

Action

public Action()
Method Detail

toString

public java.lang.String toString(int action)
Describes the action as a String.

Parameters:
action - as an integer
Returns:
String describing the action