Menge
Modular Pedestrian Simulation Framework for Research and Development
|
A profile selector that stores a single agent initializer and assigns this profile to all agents. More...
#include <ConstProfileSelector.h>
Public Member Functions | |
ConstProfileSelector () | |
Constructor. | |
virtual AgentInitializer * | getProfile () const |
Select an agent profile based on internal mechanisms. More... | |
virtual bool | cacheProfiles (HASH_MAP< std::string, AgentInitializer * > profiles) |
Caches the agent initializers defined in the specification. More... | |
void | setName (const std::string &name) |
Sets the name of the profile. More... | |
Public Member Functions inherited from Menge::Agents::ProfileSelector | |
ProfileSelector () | |
Constructor. | |
Public Member Functions inherited from Menge::Element | |
void | destroy () |
This supplants the destructor. More... | |
virtual BFSM::Task * | getTask () |
Return an optional task associated with this element. More... | |
virtual SceneGraph::GLNode * | getSGNode () |
Returns an optional visualization element associated with the element. More... | |
Protected Attributes | |
std::string | _profileName |
The name of the profile to use. | |
AgentInitializer * | _init |
The initializer belonging to the named profile. | |
Additional Inherited Members | |
Protected Member Functions inherited from Menge::Agents::ProfileSelector | |
virtual | ~ProfileSelector () |
Virtual destructor. | |
A profile selector that stores a single agent initializer and assigns this profile to all agents.
|
virtual |
Caches the agent initializers defined in the specification.
Although the ProfileSelector can cache pointers to the profiles for internal convenience, it does not own the memory and should not delete them.
profiles | A mapping from profile name to initializer. |
Implements Menge::Agents::ProfileSelector.
|
inlinevirtual |
Select an agent profile based on internal mechanisms.
Implements Menge::Agents::ProfileSelector.
|
inline |
Sets the name of the profile.
name | The name of the selector's profile. |