|
Utopia 2
Framework for studying models of complex & adaptive systems.
|
Base type for environment cell states. More...
#include <Environment.hh>

Public Types | |
| using | SpaceVec = SpaceVecType< 2 > |
Public Member Functions | |
| virtual | ~BaseEnvCellState ()=default |
| virtual double | get_env (const std::string &) const =0 |
| Get an environment variable. | |
| virtual void | set_env (const std::string &, const double &)=0 |
| Set an environment variable. | |
Public Attributes | |
| SpaceVec | position |
| Cached barycenter of the cell. | |
Base type for environment cell states.
This class is meant to be derived from and used as a basis for the desired kind of environment.
|
virtualdefault |
|
pure virtual |
Get an environment variable.
Implemented in Utopia::Models::Environment::DummyEnvCellState, EnvCellState, and EnvCellState.
|
pure virtual |
Set an environment variable.
Implemented in Utopia::Models::Environment::DummyEnvCellState, EnvCellState, and EnvCellState.
| SpaceVec Utopia::Models::Environment::BaseEnvCellState::position |
Cached barycenter of the cell.