explorer
Class SimpleExplorerAgent
java.lang.Object
alice.tucson.api.Agent
explorer.ExplorerAgent
explorer.SimpleExplorerAgent
public class SimpleExplorerAgent
- extends ExplorerAgent
This class implements a Simple Explorer Agent
- Author:
- andreamonaldini
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 |
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 |
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 agenty
- The y position of the agentdirection
- 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 agenty
- The y position of the agentdirection
- The movement direction (ExplorerAgent.NORT-EAST-SOUTH-WEST)tc
- The tuple centre id
- Throws:
alice.tucson.api.TucsonException