Simulation class removed (yet another interface change...)

38 views
Skip to first unread message

Xavier Rubio

unread,
Jul 23, 2014, 9:04:42 AM7/23/14
to pandor...@googlegroups.com
Dear all, I just commited an additional change to the interface of
Pandora in the way of merging Simulation and Config classes into a new
Config class containing all the parameters of the simulation.
The commit is this one:
https://github.com/xrubio/pandora/commit/f8ee422a480513c70781d8252df0ca8849280993

Previous main functions like this one:

Examples::RandomWorldConfig config;
config.deserialize(fileName);
Engine::Simulation helloWorldSim(config.getSize(),
config.getNumSteps(), config.getSerializeResolution());
Examples::RandomWorld world( config, helloWorldSim,
world.useOpenMPSingleNode(config.getResultsFile()));

Are now simplified in this way:

Examples::RandomWorldConfig * config = new Examples::RandomWorldConfig(fileName)
Examples::RandomWorld world(config, world.useOpenMPSingleNode());

In addition there is now a python Config class that can be used to
create custom configs (from parameters or from xml files).

All best,

Xavi
Reply all
Reply to author
Forward
0 new messages