Container for all AgentSimulation instances.
More...
#include <AgentsSimulations.h>
|
typedef std::map< std::string, AtomsPtr< AgentsSimulation > > | AgentsSimulationMap |
|
Container for all AgentSimulation instances.
◆ addAgentsSimulation()
void Atoms::AgentsSimulations::addAgentsSimulation |
( |
const std::string & |
name, |
|
|
AtomsPtr< AgentsSimulation > & |
agentSim, |
|
|
bool |
replace = true |
|
) |
| |
Adds an agent simulation.
- Parameters
-
name | Agent simulation name |
agentSim | Agent simulation |
◆ agentsSimulation()
AtomsPtr<AgentsSimulation> Atoms::AgentsSimulations::agentsSimulation |
( |
const std::string & |
simName | ) |
|
Gets an agent simulation by name.
- Parameters
-
simName | agent simulation name |
- Returns
- Pointer to the agent simulation stored inside this class
◆ agentsSimulationExists()
bool Atoms::AgentsSimulations::agentsSimulationExists |
( |
const std::string & |
name | ) |
|
Checks if an agent simulation with the given name exists.
- Parameters
-
name | Agent simulation name |
- Returns
- Return true if the agent simulation exists
◆ agentsSimulationNames()
std::vector<std::string> Atoms::AgentsSimulations::agentsSimulationNames |
( |
| ) |
|
Gets all agent simulation names.
- Returns
- List of all agent simulations
◆ removeAgentsSimulation()
void Atoms::AgentsSimulations::removeAgentsSimulation |
( |
const std::string & |
name | ) |
|
Removes the agent simulation with the given name.
- Parameters
-
name | Agent simulation name |
The documentation for this class was generated from the following file: