explorer
Class ExplorerAgent

java.lang.Object
  extended by alice.tucson.api.Agent
      extended by explorer.ExplorerAgent
Direct Known Subclasses:
AdvancedExplorerAgent, SimpleExplorerAgent

public abstract class ExplorerAgent
extends alice.tucson.api.Agent

This abstract class represent an Explorer Agent

Author:
andreamonaldini

Field Summary
static int EAST
          EAST direction
static int NORTH
          NORTH direction
static int SOUTH
          SOUTH direction
static int WEST
          WEST direction
 
Constructor Summary
ExplorerAgent(alice.tucson.api.AgentId id, SpaceGrid grid, int x, int y)
          Constructs a new Explorer Agent
 
Method Summary
 
Methods inherited from class alice.tucson.api.Agent
spawn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORTH

public static final int NORTH
NORTH direction

See Also:
Constant Field Values

EAST

public static final int EAST
EAST direction

See Also:
Constant Field Values

SOUTH

public static final int SOUTH
SOUTH direction

See Also:
Constant Field Values

WEST

public static final int WEST
WEST direction

See Also:
Constant Field Values
Constructor Detail

ExplorerAgent

public ExplorerAgent(alice.tucson.api.AgentId id,
                     SpaceGrid grid,
                     int x,
                     int y)
              throws alice.tucson.api.TucsonException
Constructs a new Explorer Agent

Parameters:
id - Agent ID.
grid - The virual space where agent works.
x - The x position of the agent
y - The y position of the agent
Throws:
alice.tucson.api.TucsonException