CellModules
Model Class Reference

#include <Model.hpp>

Classes

struct  PreSetCell
 

Public Member Functions

void loadModel (nlohmann::json config)
 
template<class Cell >
void initCell (Cell *c)
 
template<class Scenario >
void initScenario (Scenario *s)
 

Private Attributes

nlohmann::json scenarConfig
 
std::uniform_real_distribution< double > probaGen
 
std::unordered_map< Type, PreSetCelltypeToPreSetCell
 

Detailed Description

Definition at line 41 of file Model.hpp.

Member Function Documentation

◆ initCell()

template<class Cell >
void Model::initCell ( Cell c)
inline

Definition at line 76 of file Model.hpp.

◆ initScenario()

template<class Scenario >
void Model::initScenario ( Scenario s)
inline

Definition at line 80 of file Model.hpp.

◆ loadModel()

void Model::loadModel ( nlohmann::json  config)
inline

Definition at line 69 of file Model.hpp.

Member Data Documentation

◆ probaGen

std::uniform_real_distribution<double> Model::probaGen
private

Definition at line 63 of file Model.hpp.

◆ scenarConfig

nlohmann::json Model::scenarConfig
private

Definition at line 62 of file Model.hpp.

◆ typeToPreSetCell

std::unordered_map<Type, PreSetCell> Model::typeToPreSetCell
private

Definition at line 64 of file Model.hpp.


The documentation for this class was generated from the following file: