Performs demo simulations for the Modular Megafauna Model.
More...
#include <demo_simulator.h>
Performs demo simulations for the Modular Megafauna Model.
- See also
- Singleton for an explanation of the design pattern used.
-
Demo Simulator
◆ Framework() [1/2]
| Fauna::Demo::Framework::Framework |
( |
| ) |
|
|
inline |
◆ Framework() [2/2]
| Fauna::Demo::Framework::Framework |
( |
Framework const & |
| ) |
|
|
private |
Deleted copy constructor.
◆ get_instance()
| static Framework & Fauna::Demo::Framework::get_instance |
( |
| ) |
|
|
inlinestatic |
Get singleton instance of the class.
Creates the object on first call.
◆ operator=()
| void Fauna::Demo::Framework::operator= |
( |
Framework const & |
| ) |
|
|
private |
Deleted assignment constructor.
◆ print_help()
| void Framework::print_help |
( |
| ) |
|
Print the help text to STDOUT.
◆ print_usage()
| void Framework::print_usage |
( |
| ) |
|
Print the short usage text to STDERR.
◆ read_instruction_file()
| void Framework::read_instruction_file |
( |
const std::string |
filename | ) |
|
|
private |
Set params from given TOML instruction file for the demo simulator.
◆ run()
| bool Framework::run |
( |
const std::string |
insfile_fauna, |
|
|
const std::string |
insfile_demo |
|
) |
| |
Run a simulation.
At all critical points, exceptions are caught.
- Parameters
-
| insfile_fauna | Path to the instruction file for the megafauna model. |
| insfile_demo | Instruction file for the demo simulator framework. |
- Returns
- true on success, false on failure
◆ COORDINATES_PRECISION
| const int Fauna::Demo::Framework::COORDINATES_PRECISION |
|
staticprivate |
Number of decimal places in output tables.
◆ habitat
◆ mandatory_parameters
| std::vector<std::string> Fauna::Demo::Framework::mandatory_parameters |
|
private |
List of mandatory instruction file parameters.
◆ ngroups
| int Fauna::Demo::Framework::ngroups = 3 |
◆ nhabitats_per_group
| int Fauna::Demo::Framework::nhabitats_per_group = 4 |
◆ nyears
| int Fauna::Demo::Framework::nyears = 100 |
◆ outputdirectory
| std::string Fauna::Demo::Framework::outputdirectory = "./" |
| struct { ... } Fauna::Demo::Framework::params |
Parameter values from instruction file.
The initialization values are just arbitrary.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/modular-megafauna-model/checkouts/latest/tools/demo_simulator/demo_simulator.h
- /home/docs/checkouts/readthedocs.org/user_builds/modular-megafauna-model/checkouts/latest/tools/demo_simulator/demo_simulator.cpp