explorer
Class SimpleExplorerAgent

java.lang.Object
  extended by alice.tucson.api.Agent
      extended by explorer.ExplorerAgent
          extended by explorer.SimpleExplorerAgent

public class SimpleExplorerAgent
extends ExplorerAgent

This class implements a Simple Explorer Agent

Author:
andreamonaldini

Field Summary
 
Fields inherited from class explorer.ExplorerAgent
EAST, NORTH, SOUTH, WEST
 
Constructor Summary
SimpleExplorerAgent(alice.tucson.api.AgentId id, SpaceGrid grid, int x, int y, int direction)
          Constructs a new Simple Explorer Agent
SimpleExplorerAgent(alice.tucson.api.AgentId id, SpaceGrid grid, int x, int y, int direction, alice.tucson.api.TupleCentreId tc)
          Constructs a new Simple 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
 

Constructor Detail

SimpleExplorerAgent

public SimpleExplorerAgent(alice.tucson.api.AgentId id,
                           SpaceGrid grid,
                           int x,
                           int y,
                           int direction)
                    throws alice.tucson.api.TucsonException
Constructs a new Simple 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
direction - The movement direction (ExplorerAgent.NORT-EAST-SOUTH-WEST)
Throws:
alice.tucson.api.TucsonException

SimpleExplorerAgent

public SimpleExplorerAgent(alice.tucson.api.AgentId id,
                           SpaceGrid grid,
                           int x,
                           int y,
                           int direction,
                           alice.tucson.api.TupleCentreId tc)
                    throws alice.tucson.api.TucsonException
Constructs a new Simple 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
direction - The movement direction (ExplorerAgent.NORT-EAST-SOUTH-WEST)
tc - The tuple centre id
Throws:
alice.tucson.api.TucsonException