Class AgentVector_Agent

Inheritance Relationships

Base Type

Class Documentation

class AgentVector_Agent : public AgentVector_CAgent

non-const view into AgentVector

Note

To set an agent’s id, the agent must be part of a model which has begun (id’s are automatically assigned before initialisation functions and can not be manually set by users)

Public Functions

template<typename T>
void setVariable(const std::string &variable_name, const T &value)
template<typename T, unsigned int N>
void setVariable(const std::string &variable_name, const std::array<T, N> &value)
template<typename T>
void setVariable(const std::string &variable_name, const unsigned int &index, const T &value)
void resetID()

Sets the ID of this agent to the unset flag

Note

The ID will only not have the unset flag, if the agent has been taken from a simulation which has executed