Utopia 2
Framework for studying models of complex & adaptive systems.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Utopia::Models::Environment::DummyEnvCellState Struct Reference

Dummy type for environment cell states. More...

#include <Environment.hh>

Inheritance diagram for Utopia::Models::Environment::DummyEnvCellState:
Inheritance graph
[legend]
Collaboration diagram for Utopia::Models::Environment::DummyEnvCellState:
Collaboration graph
[legend]

Public Member Functions

 DummyEnvCellState (const DataIO::Config &)
 
 ~DummyEnvCellState ()=default
 
double get_env (const std::string &) const override
 Getter.
 
void set_env (const std::string &, const double &) override
 Setter.
 
- Public Member Functions inherited from Utopia::Models::Environment::BaseEnvCellState
virtual ~BaseEnvCellState ()=default
 

Additional Inherited Members

- Public Types inherited from Utopia::Models::Environment::BaseEnvCellState
using SpaceVec = SpaceVecType< 2 >
 
- Public Attributes inherited from Utopia::Models::Environment::BaseEnvCellState
SpaceVec position
 Cached barycenter of the cell.
 

Detailed Description

Dummy type for environment cell states.

This class is meant to be derived from and used as a basis for the desired kind of environment.

Constructor & Destructor Documentation

◆ DummyEnvCellState()

Utopia::Models::Environment::DummyEnvCellState::DummyEnvCellState ( const DataIO::Config )
inline
103{ }

◆ ~DummyEnvCellState()

Utopia::Models::Environment::DummyEnvCellState::~DummyEnvCellState ( )
default

Member Function Documentation

◆ get_env()

double Utopia::Models::Environment::DummyEnvCellState::get_env ( const std::string &  ) const
inlineoverridevirtual

Getter.

Implements Utopia::Models::Environment::BaseEnvCellState.

108 {
109 throw std::invalid_argument("Accessing getter of the dummy type of "
110 "EnvCellState!");
111 }

◆ set_env()

void Utopia::Models::Environment::DummyEnvCellState::set_env ( const std::string &  ,
const double  
)
inlineoverridevirtual

Setter.

Implements Utopia::Models::Environment::BaseEnvCellState.

114 {
115 throw std::invalid_argument("Accessing setter of the dummy type of "
116 "EnvCellState!");
117 }

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