|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object agent.Agent pacworld.PacAgent
public class PacAgent
An agent for the Package World.
Constructor Summary | |
---|---|
PacAgent(int i)
Create a new PacAgent. |
Method Summary | |
---|---|
java.lang.String |
getId()
Return a unique string that identifies the agent. |
void |
see(Percept p)
Provide a Percept to the agent. |
Action |
selectAction()
Have the agent select its next action to perform. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PacAgent(int i)
Method Detail |
---|
public java.lang.String getId()
Agent
getId
in class Agent
public void see(Percept p)
Agent
see
in class Agent
public Action selectAction()
Agent
selectAction
in class Agent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |