Menge
Modular Pedestrian Simulation Framework for Research and Development
|
Factory for the PointGoal. More...
#include <GoalPoint.h>
Public Member Functions | |
PointGoalFactory () | |
Constructor. | |
virtual const char * | name () const |
The name of the goal type. More... | |
virtual const char * | description () const |
A description of the goal. More... | |
Public Member Functions inherited from Menge::BFSM::GoalFactory | |
GoalFactory () | |
Constructor. | |
Public Member Functions inherited from Menge::ElementFactory< Goal > | |
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... | |
Goal * | createInstance (TiXmlElement *node, const std::string &behaveFldr) const |
Parses the xml data. More... | |
Protected Member Functions | |
Goal * | instance () const |
Create an instance of this class's goal. More... | |
virtual bool | setFromXML (Goal *goal, TiXmlElement *node, const std::string &behaveFldr) const |
Given a pointer to a Goal instance, sets the appropriate fields from the provided XML node. More... | |
Protected Member Functions inherited from Menge::ElementFactory< Goal > | |
virtual | ~ElementFactory () |
Destructor. | |
virtual bool | setFromXML (Goal *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 | _xID |
The identifier for the "x" float attribute. | |
size_t | _yID |
The identifier for the "y" float attribute. | |
Protected Attributes inherited from Menge::BFSM::GoalFactory | |
size_t | _idID |
The identifier for the "id" size_t attribute. | |
size_t | _capacityID |
The identifier for the "capacity" size_t attribute. | |
size_t | _weightID |
The identifier for the "weight" size_t attribute. | |
Protected Attributes inherited from Menge::ElementFactory< Goal > | |
AttributeSet | _attrSet |
The attribute set for this factory. | |
Factory for the PointGoal.
|
inlinevirtual |
A description of the goal.
Each goal factory must override this function.
Implements Menge::ElementFactory< Goal >.
|
inlineprotectedvirtual |
Create an instance of this class's goal.
Implements Menge::ElementFactory< Goal >.
|
inlinevirtual |
The name of the goal type.
The goal's name must be unique among all registered goals. Each goal factory must override this function.
Implements Menge::ElementFactory< Goal >.
|
protectedvirtual |
Given a pointer to a Goal instance, sets the appropriate fields from the provided XML node.
goal | A pointer to the goal whose attributes are to be set. |
node | The XML node containing the action attributes. |
behaveFldr | The path to the behavior file. If the action 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::GoalFactory.