|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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(String goodName)
Return a reference to a good given goodName |
int |
getID()
Return the ID of the agent |
String |
getName()
Return the class name of the agent |
boolean |
isAlive()
Is the agent alive? |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Agent()
Method Detail |
---|
public abstract Good getGood(String goodName)
goodName
-
public final int getID()
public final boolean isAlive()
public final 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 |