Utopia  2
Framework for studying models of complex & adaptive systems.
Typedefs | Functions
Utopia::Models::Environment::StateFunctionCollection Namespace Reference

Typedefs

using Config = DataIO::Config
 Configuration node type alias. More...
 

Functions

template<typename EnvModel , class DistType , class EnvStateFunc = typename EnvModel::EnvStateFunc>
EnvStateFunc build_rng_env_state_func (EnvModel &model, DistType &&dist, const std::string &param_name, const ValMode &mode)
 Create a rule function that uses a random number distribution. More...
 
template<typename EnvModel , class EnvStateFunc = typename EnvModel::EnvStateFunc>
std::pair< EnvStateFunc, Updateesf_noise (const EnvModel &model, const std::string &param_name, const Config &cfg)
 Creates a rule function for noisy parameter values. More...
 
template<typename EnvModel , typename Extent , class EnvStateFunc = typename EnvModel::EnvStateFunc>
std::pair< EnvStateFunc, Updateesf_slope (const EnvModel &, const std::string &param_name, const Config &cfg, const Extent &extent)
 Creates a rule function for spatially linearly parameter values. More...
 
template<typename EnvModel , class EnvStateFunc = typename EnvModel::EnvStateFunc>
std::pair< EnvStateFunc, Updateesf_steps (const EnvModel &, const std::string &param_name, const Config &cfg)
 Creates a rule function for spatial steps in the parameter values. More...
 
template<typename EnvModel , class EnvStateFunc = typename EnvModel::EnvStateFunc>
std::pair< EnvStateFunc, Updateesf_uniform (const EnvModel &, const std::string &param_name, const Config &cfg)
 Creates a rule function for spatially uniform parameter values. More...
 

Typedef Documentation

◆ Config

Configuration node type alias.

Function Documentation

◆ build_rng_env_state_func()

template<typename EnvModel , class DistType , class EnvStateFunc = typename EnvModel::EnvStateFunc>
EnvStateFunc Utopia::Models::Environment::StateFunctionCollection::build_rng_env_state_func ( EnvModel &  model,
DistType &&  dist,
const std::string &  param_name,
const ValMode mode 
)

Create a rule function that uses a random number distribution.

This constructs a mutable EnvStateFunc lambda, moving the dist into the capture.