|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.brook.ascape.model.AscapeObject
|
+--edu.brook.ascape.rule.Rule
|
+--edu.brook.ascape.rule.CollectStats
A rule for gathering values (typically aggegate statistics) from the entire population of agents.
| Field Summary | |
protected StatCollector[] |
autoSeriesStatCollectors
The stats to be collected automatically. |
protected StatCollector[] |
autoSeriesStatCollectors2
The stats to be collected automatically. |
protected int |
phase
|
protected StatCollector[] |
stats
The stats to be collected. |
| Fields inherited from class edu.brook.ascape.model.AscapeObject |
ARBITRARY_SEED,
count,
name,
scape |
| Constructor Summary | |
CollectStats()
Constructs a new stat collecting rule. |
|
CollectStats(StatCollector[] statCollectors)
Constructs a new stat collecting rule. |
|
| Method Summary | |
void |
addStatCollector(StatCollector addDataPoint)
Adds value stats to the collection rule. |
void |
addStatCollectors(StatCollector[] addDataPoints)
Adds value stats to the collection rule. |
void |
calculateValues()
Clears the values so that they can be collected for the next iteration. |
void |
clear()
Clears the values so that they can be collected for the next iteration. |
void |
execute(Agent agent)
Collects all values for the agent. |
StatCollector[] |
getStatCollectors()
Returns the stats used to collect values from the scape. |
boolean |
isIterateAll()
Returns true. |
boolean |
isRandomExecution()
Returns false; it doesn't matter what order we collect statistics in. |
void |
setPhase(int phase)
|
| Methods inherited from class edu.brook.ascape.rule.Rule |
getScape,
isCauseRemoval,
setScape |
| Methods inherited from class edu.brook.ascape.model.AscapeObject |
clone,
getName,
getRandom,
getRandomSeed,
randomInRange,
randomInRange,
randomIs,
randomToLimit,
reseed,
setName,
setRandom,
setRandomSeed,
toString |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected StatCollector[] stats
protected StatCollector[] autoSeriesStatCollectors
protected StatCollector[] autoSeriesStatCollectors2
protected int phase
| Constructor Detail |
public CollectStats()
public CollectStats(StatCollector[] statCollectors)
statCollectors - the stats to use| Method Detail |
public StatCollector[] getStatCollectors()
public void addStatCollectors(StatCollector[] addDataPoints)
addStatCollector - the stats to addScape.addStatCollectors(edu.brook.ascape.util.StatCollector[]),
StatCollector.isAutoCollect()public void addStatCollector(StatCollector addDataPoint)
public void clear()
public void calculateValues()
public void execute(Agent agent)
agent - the target agent.public void setPhase(int phase)
public boolean isRandomExecution()
public boolean isIterateAll()
|
(c) 1998-2000 The Brookings Insitution Webpage |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||