24 lines
854 B
C++
Executable File
24 lines
854 B
C++
Executable File
#ifndef TERMINATOR_GENERATOR_H
|
|
#define TERMINATOR_GENERATOR_H
|
|
|
|
#include "simulation/jansson_additionals.h"
|
|
#include "simulation/parameter.h"
|
|
#include "simulation/terminator.h"
|
|
|
|
namespace generator {
|
|
|
|
// return a shared_ptr to a Terminator object described by the given json-object in the Parameter object
|
|
// the object at the path has to contain:
|
|
// - a json-double (later cast to an integer) "MaximumInteractions"
|
|
// - a json-object "MaxTimeAlive", which has to contain a json-double "value", giving the
|
|
// maximum time a particle is allowed to live in seconds
|
|
// - a json-object "BoundaryGeometry", which has to follow the structure given in buildGeometry
|
|
// ("generators/geometry_generator.h")
|
|
std::shared_ptr<Terminator> buildTerminator(
|
|
Parameter& parameter,
|
|
const json_path& path_to_terminator);
|
|
|
|
};
|
|
|
|
#endif /* TERMINATOR_GENERATOR_H */
|