|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSwarmObjectImpl
CurrentInstant
This is a class for calling a different number of agents for every istant of simulating day. The CurrentAgent is called a numberOfOperatinAgents times.
Field Summary | |
int |
maxNumberOfOperatingAgents
The maximum number of operating agents. |
int |
numberOfOperatingAgents
The number of operating agents per instant. |
int |
percentageOfOperatingAgents
The percentage quota of agents which act in the market. |
int |
printing
If 1 many objects print data on the terminal window. |
(package private) CurrentAgent |
theCurrentAgent
The Current Agent of the simulation. |
boolean |
typeOfPercentage
The type of percetage of agents. |
Constructor Summary | |
CurrentInstant(Zone aZone)
Constructor for a new CurrentInstant. |
Method Summary | |
void |
callAgents()
The method calls the CurrentAgent numberOfOperatingAgents times. |
void |
setCurrentAgent(CurrentAgent c)
The method sets theCurrentAgent. |
void |
setMaxNumberOfOperatingAgents(int n)
This method sets the maximum value of operating agents. |
void |
setPercentageOfOperatingAgents(int p)
This method sets the percentage of operating agents. |
void |
setPrinting(int p)
To set the value of option printing. |
void |
setTypeOfPercentage(boolean t)
This method sets the type of percentage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
CurrentAgent theCurrentAgent
public int numberOfOperatingAgents
public int maxNumberOfOperatingAgents
public int percentageOfOperatingAgents
public boolean typeOfPercentage
public int printing
Constructor Detail |
public CurrentInstant(Zone aZone)
Method Detail |
public void setCurrentAgent(CurrentAgent c)
public void setMaxNumberOfOperatingAgents(int n)
public void setPercentageOfOperatingAgents(int p)
public void setTypeOfPercentage(boolean t)
public void setPrinting(int p)
public void callAgents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |