45 #ifndef __CONST_STATE_SELECTOR_H__
46 #define __CONST_STATE_SELECTOR_H__
48 #include "mengeCommon.h"
73 virtual std::string
getState() {
return _stateName; }
80 void setStateName(
const std::string & name ) { _stateName = name; }
109 virtual const char *
name()
const {
return "const"; }
119 return "State selector which assigns the initial state to all agents.";
153 virtual bool setFromXML(
StateSelector * sel, TiXmlElement * node,
const std::string & specFldr )
const;
163 #endif // __CONST_STATE_SELECTOR_H__
void setStateName(const std::string &name)
Sets the name of the state.
Definition: ConstStateSelector.h:80
ConstStateSelector()
Constructor.
Definition: ConstStateSelector.h:64
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: ConstStateSelector.h:158
virtual const char * name() const
The name of the state selector type.
Definition: ConstStateSelector.h:109
virtual std::string getState()
Provides the name of a state.
Definition: ConstStateSelector.h:73
StateSelector * instance() const
Create an instance of this class's state selector implementation.
Definition: ConstStateSelector.h:133
The factory for parsing xml data and instantiating profile selector implementations.
A class for parsing the xml description of an initial state selector element and instantiating partic...
Definition: StateSelectorFactory.h:59
The base class for selecting an agent's intial state.
Definition: StateSelector.h:98
virtual const char * description() const
A description of the state selector.
Definition: ConstStateSelector.h:118
An initial state selector that stores a single state and assigns that state to all agents...
Definition: ConstStateSelector.h:59
The factory for the ConstStateSelector.
Definition: ConstStateSelector.h:94
std::string _stateName
The name of the profile to use.
Definition: ConstStateSelector.h:86
The namespace that contains the basic simulation mechanisms.
The definition of the agent initial state selector element. This is the mechanism which determines wh...