Class Population
Defined in File population.h
Class Documentation
-
class Population
An abstract for generic models.
Public Functions
Add an Agent to the Population.
- Parameters
agent – The Agent to add.
- Returns
the ID of the agent added
-
std::shared_ptr<Agent> delete_agent(AgentID agent_id)
Remove an Agent from the Population.
-
std::unique_ptr<std::vector<AgentID>> get_agent_list() const
Returns the agent list.
- Returns
a
std::vector
of all theAgentID
’s in thePopulation
Protected Attributes