Menge
Modular Pedestrian Simulation Framework for Research and Development
|
Factory for the OffsetGoalSelector. More...
#include <GoalSelectorOffset.h>
Public Member Functions | |
OffsetGoalSelectorFactory () | |
Constructor. | |
virtual const char * | name () const |
The name of the goal selector type. More... | |
virtual const char * | description () const |
A description of the goal selector. More... | |
Public Member Functions inherited from Menge::BFSM::GoalSelectorFactory | |
GoalSelectorFactory () | |
Constructor. | |
Public Member Functions inherited from Menge::ElementFactory< GoalSelector > | |
ElementFactory () | |
Default constructor. | |
void | destroy () |
This supplants the destructor. More... | |
bool | thisFactory (const std::string &typeName) const |
Reports if the xml node defines an element for this factory. More... | |
GoalSelector * | createInstance (TiXmlElement *node, const std::string &behaveFldr) const |
Parses the xml data. More... | |
Protected Member Functions | |
GoalSelector * | instance () const |
Create an instance of this class's goal selector. More... | |
virtual bool | setFromXML (GoalSelector *selector, TiXmlElement *node, const std::string &behaveFldr) const |
Given a pointer to a GoalSelector instance, sets the appropriate fields from the provided XML node. More... | |
Protected Member Functions inherited from Menge::ElementFactory< GoalSelector > | |
virtual | ~ElementFactory () |
Destructor. | |
virtual bool | setFromXML (GoalSelector *element, TiXmlElement *node, const std::string &specFldr) const |
Given a pointer to an element instance, sets the appropriate fields from the provided XML node. More... | |
Protected Attributes | |
size_t | _offsetID |
The identifier for the 2D vector generator attribute. | |
Protected Attributes inherited from Menge::BFSM::GoalSelectorFactory | |
size_t | _persistentID |
The identifier for the "persistent" bool attribute. | |
Protected Attributes inherited from Menge::ElementFactory< GoalSelector > | |
AttributeSet | _attrSet |
The attribute set for this factory. | |
Factory for the OffsetGoalSelector.
|
inlinevirtual |
A description of the goal selector.
Each goal selector factory must override this function.
Implements Menge::ElementFactory< GoalSelector >.
|
inlineprotectedvirtual |
Create an instance of this class's goal selector.
Implements Menge::ElementFactory< GoalSelector >.
|
inlinevirtual |
The name of the goal selector type.
The goal selector's name must be unique among all registered goal selectors. Each goal selector factory must override this function.
Implements Menge::ElementFactory< GoalSelector >.
|
protectedvirtual |
Given a pointer to a GoalSelector instance, sets the appropriate fields from the provided XML node.
selector | A pointer to the goal whose attributes are to be set. |
node | The XML node containing the goal selector attributes. |
behaveFldr | The path to the behavior file. If the goal selector references resources in the file system, it should be defined relative to the behavior file location. This is the folder containing that path. |
Reimplemented from Menge::BFSM::GoalSelectorFactory.