10 #include <Atoms/Globals.h>
11 #include <Atoms/AgentsSimulation.h>
22 typedef std::map<std::string, AtomsPtr<AgentsSimulation>> AgentsSimulationMap;
39 void addAgentsSimulation(
const std::string& name, AtomsPtr<AgentsSimulation>& agentSim,
bool replace =
true);
66 AgentsSimulationMap::iterator begin();
68 AgentsSimulationMap::iterator end();
70 AgentsSimulationMap::const_iterator cbegin()
const;
72 AgentsSimulationMap::const_iterator cend()
const;
94 AgentsSimulationMap m_agentsSimulationsMap;
Container for all AgentSimulation instances.
Definition: AgentsSimulations.h:19
void clear()
Removes all agent simulations.
std::vector< std::string > agentsSimulationNames()
Gets all agent simulation names.
AtomsPtr< AgentsSimulation > agentsSimulation(const std::string &simName)
Gets an agent simulation by name.
bool agentsSimulationExists(const std::string &name)
Checks if an agent simulation with the given name exists.
void removeAgentsSimulation(const std::string &name)
Removes the agent simulation with the given name.
unsigned int numAgentsSimulation()
Gets the number of agent simulations.
static AgentsSimulations & instance()
Singleton access.
void addAgentsSimulation(const std::string &name, AtomsPtr< AgentsSimulation > &agentSim, bool replace=true)
Adds an agent simulation.
Atoms namespace.
Definition: Agent.h:29