- Inherits From:
- Swarm
- Declared In:
- ASMBatchSwarm.h
int loggingFrequency;
int experimentDuration;
id <ActionGroup> displayActions;
id <Schedule> displaySchedule;
id <Schedule> stopSchedule;
ASMModelSwarm * asmModelSwarm;
id output;
loggingFrequency how often to write data experimentDuration how long should a run last displayActions Set of actions that update output displaySchedule Schedule for periodic actions stopSchedule Schedule which checks to see if the simulation has completed its requisite number of timesteps asmModelSwarm Instance of ASMModelSwarm, where agents and the world are created and scheduled output Reference to instance of Output class, the place where data file output is controlled
- + createBegin:
- - buildObjects
- - buildActions
- - activateIn:
- - expostParamWrite
- - go
- - stopRunning
- - drop
+ createBegin:aZone
No method description.
- activateIn:swarmContext
activateIn: is required to preserve the hierarchy of schedules across many levels
- buildActions
Create schedules. Assures that the output object writes the data when needed and checks to see if the required number of time steps has been completed
- buildObjects
Create a model swarm, have the model swarm build its objects, and then get the output object from the model. Later the output object is instructed to write results
- (void)drop
The drop method lets objects know the simulation is coming to an end, so if they are waiting to write some data, they should do it
- expostParamWrite
Tell the objects that are keeping records on parameter values to write them to files at the end of the simulation.
- go
Once schedules are created and activatedIn to the right part of the hierarchy, then go makes processing start with actions at time 0, then 1, then...
- stopRunning
tell the top level swarm to terminate the simulation