|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSwarmObjectImpl
CurrentAgent
This is a ghost agent which simply transfers the 'act' message to the first agent in the list agentList and rotate it this trick is necessary to send the act message agentNumber times; so the observer can dispaly the price of each acting step.
Field Summary | |
(package private) ListImpl |
agentList
This is the agent list. |
int |
printing
If 1 many objects print data on the terminal window. |
Constructor Summary | |
CurrentAgent(Zone aZone)
Constructor for a new CurrentAgent. |
Method Summary | |
void |
act1()
The method calls the act1 method from an agent, which is in a list. |
void |
setAgentList(ListImpl l)
The method sets agentList. |
void |
setPrinting(int p)
To set the value of option printing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
ListImpl agentList
public int printing
Constructor Detail |
public CurrentAgent(Zone aZone)
Method Detail |
public void setPrinting(int p)
public void setAgentList(ListImpl l)
public void act1()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |