45 #ifndef __CONST_PROFILE_SELECTOR_H__
46 #define __CONST_PROFILE_SELECTOR_H__
48 #include "mengeCommon.h"
83 virtual bool cacheProfiles( HASH_MAP< std::string, AgentInitializer * > profiles );
90 void setName(
const std::string & name ) { _profileName = name; }
124 virtual const char *
name()
const {
return "const"; }
134 return "Profile selector which assigns the same profile to all agents.";
168 virtual bool setFromXML(
ProfileSelector * pSel, TiXmlElement * node,
const std::string & specFldr )
const;
180 #endif // __CONST_PROFILE_SELECTOR_H__
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
size_t _nameID
The identifier for the "name" string parameter.
Definition: ConstProfileSelector.h:173
void setName(const std::string &name)
Sets the name of the profile.
Definition: ConstProfileSelector.h:90
std::string _profileName
The name of the profile to use.
Definition: ConstProfileSelector.h:96
virtual const char * description() const
A description of the profile selector.
Definition: ConstProfileSelector.h:133
Class which determines the agent properties for each new agent.
Definition: AgentInitializer.h:75
virtual AgentInitializer * getProfile() const
Select an agent profile based on internal mechanisms.
Definition: ConstProfileSelector.h:71
ProfileSelector * instance() const
Create an instance of this class's profile selector implementation.
Definition: ConstProfileSelector.h:148
The factory for the ConstProfileSelector.
Definition: ConstProfileSelector.h:109
A class for parsing the xml description of an agent profile selector elements and instantiating parti...
Definition: ProfileSelectorFactory.h:59
The base class for agent profile assignment strategies.
Definition: ProfileSelector.h:100
virtual const char * name() const
The name of the profile selector type.
Definition: ConstProfileSelector.h:124
A profile selector that stores a single agent initializer and assigns this profile to all agents...
Definition: ConstProfileSelector.h:59
The namespace that contains the basic simulation mechanisms.
AgentInitializer * _init
The initializer belonging to the named profile.
Definition: ConstProfileSelector.h:101
The factory for parsing xml data and instantiating profile selector implementations.
The definition of the agent profile selector element. This is the mechanism which associates an agent...