Menge
Modular Pedestrian Simulation Framework for Research and Development
|
The base class for agent profile assignment strategies. More...
#include <ProfileSelector.h>
Public Member Functions | |
ProfileSelector () | |
Constructor. | |
virtual AgentInitializer * | getProfile () const =0 |
Select an agent profile based on internal mechanisms. More... | |
virtual bool | cacheProfiles (HASH_MAP< std::string, AgentInitializer * > profiles)=0 |
Caches the agent initializers defined in the specification. More... | |
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 Member Functions | |
virtual | ~ProfileSelector () |
Virtual destructor. | |
The base class for agent profile assignment strategies.
This is an abstract class, primarily defining the mechanism for selecting an agent profile to assign to a newly created agent.
|
pure 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. |
Implemented in Menge::Agents::ConstProfileSelector.
|
pure virtual |
Select an agent profile based on internal mechanisms.
Implemented in Menge::Agents::ConstProfileSelector.