Class for parsing the SCENE XML specification and initialize a simulator It only knows the most fundamental common aspects of the file, relying on the Simulator to know of its own specific domain knowledge.
More...
#include <SimXMLLoader.h>
|
std::string | _sceneFldr |
| The folder in which the scene configuration file appears.
|
|
XMLSimulatorBase * | _sim |
| The simulator to populate based on the contents of the xml.
|
|
unsigned int | _agtCount |
| The number of agents loaded.
|
|
HASH_MAP< std::string,
AgentInitializer * > | _profiles |
| Mapping from agent profile name to agent initializer.
|
|
Class for parsing the SCENE XML specification and initialize a simulator It only knows the most fundamental common aspects of the file, relying on the Simulator to know of its own specific domain knowledge.
Constructor.
- Parameters
-
sim | The simulator to populate based on definition in XML. |
bool Menge::Agents::SimXMLLoader::loadFromXML |
( |
const std::string & |
xmlName, |
|
|
AgentInitializer * |
agentInit, |
|
|
bool |
verbose = false |
|
) |
| |
Parse the xml and load the given simulator.
- Parameters
-
xmlName | The path to the xml file simulation specification. |
agentInit | The AgentInitializer necessary to parse AgentSet properties |
verbose | Determines if parsing outputs progress information (true) or parses silently (false). |
- Returns
- True if the simulation is successfully loaded, false otherwise.
bool Menge::Agents::SimXMLLoader::parseAgentGroup |
( |
TiXmlElement * |
node, |
|
|
AgentInitializer * |
agentInit |
|
) |
| |
|
protected |
Parses the definition of an AgentGroup.
- Parameters
-
node | A pointer to the XML node containing the definition. |
agentInit | The AgentInitializer necessary to parse AgentProfile properties |
- Returns
- A boolean reporting success (true) or failure (false).
bool Menge::Agents::SimXMLLoader::parseAgentProfile |
( |
TiXmlElement * |
node, |
|
|
AgentInitializer * |
agentInit |
|
) |
| |
|
protected |
Parses the definition of an agent profile.
- Parameters
-
node | A pointer to the XML node containing the definition. |
agentInit | The AgentInitializer necessary to parse AgentProfile properties |
- Returns
- A boolean reporting success (true) or failure (false).
bool Menge::Agents::SimXMLLoader::parseObstacleSet |
( |
TiXmlElement * |
node | ) |
|
|
protected |
Parses the definition of an obstacleset.
- Parameters
-
node | A pointer to the XML node containing the obstacleset. |
- Returns
- A boolean reporting success (true) or failure (false).
The documentation for this class was generated from the following files:
- src/menge/MengeCore/Agents/SimXMLLoader.h
- src/menge/MengeCore/Agents/SimXMLLoader.cpp