|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteos.agent.Agent
public abstract class Agent
Parent class of all agents
Constructor Summary | |
---|---|
Agent()
Create a new agent |
Method Summary | |
---|---|
abstract void |
act()
Called by Economy.step() in each simulation step. |
protected void |
die()
Make the agent die. |
abstract Good |
getGood(java.lang.String goodName)
Return a reference to a good given goodName |
int |
getID()
Return the ID of the agent |
java.lang.String |
getName()
Return the class name of the agent |
boolean |
isAlive()
Is the agent alive? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Agent()
Method Detail |
---|
public abstract Good getGood(java.lang.String goodName)
goodName
-
public final int getID()
public final boolean isAlive()
public final java.lang.String getName()
protected void die()
public abstract void act()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |