RepastHPC
2.3.1
|
Runs a Relogo simulation. More...
#include <SimulationRunner.h>
Public Member Functions | |
SimulationRunner (boost::mpi::communicator *communicator) | |
Creates a SimulationRunner. | |
template<typename ObserverType , typename PatchType > | |
void | run (Properties &props) |
Creates and runs the simulation using the properties defined in props. More... | |
Protected Attributes | |
boost::mpi::communicator * | comm |
Runs a Relogo simulation.
void repast::relogo::SimulationRunner::run | ( | Properties & | props | ) |
Creates and runs the simulation using the properties defined in props.
The properties file must have the following properties defined:
stop.at the tick at which to stop the simulation
This will create an Observer of the specified type and populate the world with Patches of the specified type. It will then call setup(props) on that Observer implementation and start the simulation schedule which will call the Observer's go method each tick.
props | a properties file containing the properties mentioned above |
ObserverType | the type of Observer to create. This type must extend relogo::Observer. |
PatchType | the type of Patches to create. This must extend relogo::Patch. |