- Inherits From:
- Declared In:
id <ActionGroup> displayActions;
id <Schedule> displaySchedule;
id <Schedule> stopSchedule;
ASMModelSwarm * asmModelSwarm;
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
No method description.
activateIn: is required to preserve the hierarchy of schedules across many levels
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
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
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
Tell the objects that are keeping records on parameter values to write them to files at the end of the simulation.
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...
tell the top level swarm to terminate the simulation