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. More... | |
virtual void | set_env (const std::string &, const double &)=0 |
Set an environment variable. More... | |
Public Attributes | |
SpaceVec | position |
Cached barycenter of the cell. More... | |
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 EnvCellState, EnvCellState, and Utopia::Models::Environment::DummyEnvCellState.
|
pure virtual |
Set an environment variable.
Implemented in EnvCellState, EnvCellState, and Utopia::Models::Environment::DummyEnvCellState.
SpaceVec Utopia::Models::Environment::BaseEnvCellState::position |
Cached barycenter of the cell.