![]() |
Menge Plugin Examples
A Collection of Example Plugins for the Menge Framework
|
The simulator database entry for the Zanlungo 2011 simulator. More...
#include <ZanlungoDBEntry.h>
Public Member Functions | |
virtual ::std::string | briefDescription () const |
Gives a brief description of the simulator. More... | |
virtual ::std::string | longDescription () const |
Gives a long description of the simulator. More... | |
virtual ::std::string | viewerName () const |
Gives a label to apply to the interactive viewer. More... | |
virtual ::std::string | commandLineName () const |
Gives a unique name to be used as a command-line parameter. More... | |
virtual Agents::SimulatorInterface * | getNewSimulator () |
Returns a pointer to this model's Simulator instance. More... | |
virtual Agents::AgentInitializer * | getAgentInitalizer () const |
Provides an AgentInitializer appropriate to this simulator class. More... | |
![]() | |
SimSystem * | getSimulatorSystem (size_t &agentCount, float &simTimeStep, size_t subSteps, float simDuration, const std::string &behaveFile, const std::string &sceneFile, const std::string &outFile, const std::string &scbVersion, bool visualize, bool VERBOSE) |
void | populateScene (SimSystem *system, SceneGraph::GLScene *scene) |
BaseAgentContext * | getAgentContext (SimSystem *system) |
float | simDuration () const |
Protected Member Functions | |
virtual BaseAgentContext * | contextFromSystem (SimSystem *system) |
Returns a pointer to an agent context appropriate to the corresponding simulator. More... | |
![]() | |
Agents::SimulatorInterface * | initSimulator (const std::string &sceneFileName, bool VERBOSE) |
BFSM::FSM * | initFSM (const std::string &behaveFile, Agents::SimulatorInterface *sim, bool VERBOSE) |
bool | finalize (Agents::SimulatorInterface *sim, BFSM::FSM *fsm) |
virtual SimSystem * | createSimSystem (bool visualize, float duration) |
Additional Inherited Members | |
![]() | |
Agents::SimulatorInterface * | _sim |
BFSM::FSM * | _fsm |
The simulator database entry for the Zanlungo 2011 simulator.
|
virtual |
Gives a brief description of the simulator.
Implements Menge::SimulatorDBEntry.
|
inlinevirtual |
Gives a unique name to be used as a command-line parameter.
This name MUST satisfy two constraints:
Implements Menge::SimulatorDBEntry.
|
protectedvirtual |
Returns a pointer to an agent context appropriate to the corresponding simulator.
If the provided system is not, in fact, a pointer to a SimSystem for the appropriate simulator type, this function will report failure. Furthermore, the default implementation is to return a BaseAgentContext. If the simulator comes with a novel context, this function should be overridden in the derived SimulatorDBEntry.
system | The system which tracks the agents. This should be the same system which was returned by a call to SimulatorDBEntryBase::getSimulatorSystem. |
Reimplemented from Menge::SimulatorDBEntry.
|
virtual |
Provides an AgentInitializer appropriate to this simulator class.
Reimplemented from Menge::SimulatorDBEntry.
|
virtual |
Returns a pointer to this model's Simulator instance.
This must be overridden by a derived class
Implements Menge::SimulatorDBEntry.
|
virtual |
Gives a long description of the simulator.
Implements Menge::SimulatorDBEntry.
|
virtual |
Gives a label to apply to the interactive viewer.
Implements Menge::SimulatorDBEntry.