A convenience class for setting up all objects (e.g. More...
#include <simulationfactory.h>
Inherits LibGeoDecomp::Optimizer::Evaluator.
Public Member Functions | |
template<typename INITIALIZER > | |
SimulationFactory (INITIALIZER initializer) | |
~SimulationFactory () | |
void | addWriter (const ParallelWriter< CELL > &writer) |
void | addWriter (const Writer< CELL > &writer) |
Simulator< CELL > * | operator() () |
Returns a new simulator according to the previously specified parameters. | |
double | operator() (const SimulationParameters ¶ms) |
SimulationParameters & | parameters () |
Private Member Functions | |
Simulator< CELL > * | buildSimulator (Initializer< CELL > *initializer, const SimulationParameters ¶ms) const |
Private Attributes | |
ClonableInitializer< CELL > * | initializer |
SimulationParameters | parameterSet |
std::vector< boost::shared_ptr < ParallelWriter< CELL > > > | parallelWriters |
std::vector< boost::shared_ptr < Writer< CELL > > > | writers |
A convenience class for setting up all objects (e.g.
writers and steerers) necessary for conduction a simulation.
LibGeoDecomp::SimulationFactory< CELL >::SimulationFactory | ( | INITIALIZER | initializer | ) | [inline] |
LibGeoDecomp::SimulationFactory< CELL >::~SimulationFactory | ( | ) | [inline] |
void LibGeoDecomp::SimulationFactory< CELL >::addWriter | ( | const ParallelWriter< CELL > & | writer | ) | [inline] |
void LibGeoDecomp::SimulationFactory< CELL >::addWriter | ( | const Writer< CELL > & | writer | ) | [inline] |
Simulator<CELL>* LibGeoDecomp::SimulationFactory< CELL >::buildSimulator | ( | Initializer< CELL > * | initializer, | |
const SimulationParameters & | params | |||
) | const [inline, private] |
double LibGeoDecomp::SimulationFactory< CELL >::operator() | ( | const SimulationParameters & | params | ) | [inline, virtual] |
Implements LibGeoDecomp::Optimizer::Evaluator.
Simulator<CELL>* LibGeoDecomp::SimulationFactory< CELL >::operator() | ( | ) | [inline] |
Returns a new simulator according to the previously specified parameters.
The user is expected to delete the simulator.
References LibGeoDecomp::Writer< CELL_TYPE >::clone(), and LibGeoDecomp::SimulationFactory< CELL >::writers.
SimulationParameters& LibGeoDecomp::SimulationFactory< CELL >::parameters | ( | ) | [inline] |
ClonableInitializer<CELL>* LibGeoDecomp::SimulationFactory< CELL >::initializer [private] |
Referenced by LibGeoDecomp::SimulationFactory< CELL >::SimulationFactory().
std::vector<boost::shared_ptr<ParallelWriter<CELL> > > LibGeoDecomp::SimulationFactory< CELL >::parallelWriters [private] |
SimulationParameters LibGeoDecomp::SimulationFactory< CELL >::parameterSet [private] |
Referenced by LibGeoDecomp::SimulationFactory< CELL >::buildSimulator().
std::vector<boost::shared_ptr<Writer<CELL> > > LibGeoDecomp::SimulationFactory< CELL >::writers [private] |
Referenced by LibGeoDecomp::SimulationFactory< CELL >::operator()().