Class AgentInstance
Defined in File AgentInstance.h
Class Documentation
-
class AgentInstance
This class represents standalone copy of a single agent It stores all the data internally, unlike an AgentVector::Agent
Note
Not 100% on the name, might change
Public Functions
-
explicit AgentInstance(const CAgentDescription &agent_desc)
Initialises the agent variables with their default values
-
AgentInstance(const AgentInstance &other)
Copy constructors
-
explicit AgentInstance(const AgentVector::CAgent &other)
-
AgentInstance(AgentInstance &&other) noexcept
Move constructor
-
AgentInstance &operator=(const AgentInstance &other)
Assignment operators
-
AgentInstance &operator=(const AgentVector::CAgent &other)
-
AgentInstance &operator=(AgentInstance &&other) noexcept
-
template<typename T, unsigned int N>
std::array<T, N> getVariable(const std::string &variable_name) const
-
template<typename T, unsigned int N = 0>
T getVariable(const std::string &variable_name, unsigned int index) const
-
explicit AgentInstance(const CAgentDescription &agent_desc)