RepastHPC
2.3.1
|
Creates a the relogo world given some parameters. More...
#include <WorldCreator.h>
Public Member Functions | |
WorldCreator (boost::mpi::communicator *communicator) | |
template<typename ObsType , typename PatchType , typename PatchCreator > | |
ObsType * | createWorld (const WorldDefinition &worldDef, const std::vector< int > &pConfig, PatchCreator &patchCreator) |
Creates the Relogo world using the specified parameters and returns an Observer of ObsType. More... | |
template<typename ObsType , typename PatchType > | |
ObsType * | createWorld (const WorldDefinition &worldDef, const std::vector< int > &pConfig) |
Creates an observer of the specified type. More... | |
Creates a the relogo world given some parameters.
ObsType * repast::relogo::WorldCreator::createWorld | ( | const WorldDefinition & | worldDef, |
const std::vector< int > & | pConfig | ||
) |
Creates an observer of the specified type.
The observer will contain a world defined by worldDef and pConfig.
worldDef | the world definition |
pConfig | a 2D vector containing the number of processes per grid dimension |
ObsType * repast::relogo::WorldCreator::createWorld | ( | const WorldDefinition & | worldDef, |
const std::vector< int > & | pConfig, | ||
PatchCreator & | patchCreator | ||
) |
Creates the Relogo world using the specified parameters and returns an Observer of ObsType.
worldDef | the world definition |
pConfig | a two element vector describing the number of processes along the x and y dimensions |
patchCreator | used to create the Patches. |