Menge Plugin Examples
A Collection of Example Plugins for the Menge Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Protected Attributes | Friends | List of all members
Zanlungo::Simulator Class Reference

Defines the simulator operating on a Zanlungo::Agent. More...

#include <ZanlungoSimulator.h>

Inheritance diagram for Zanlungo::Simulator:

Public Member Functions

 Simulator ()
 Constructor.
 
virtual bool hasExpTarget ()
 Reports if there are non-common Experiment parameters that this simulator requires in the XML file. More...
 
virtual bool isExpTarget (const std::string &tagName)
 Reports if the given Experiment attribute tag name belongs to this simulator. More...
 
virtual bool setExpParam (const std::string &paramName, const std::string &value) throw ( Agents::XMLParamException )
 Given an Experiment parameter name and value, sets the appropriate simulator parameter. More...
 

Static Protected Attributes

static float AGENT_SCALE = 2000.f
 The magnitude of the inter-agent repulsion forces In the paper, this is the parameter A in the agent repulsion force.
 
static float OBST_SCALE = 2000.f
 The magnitude of the agent-obstacle repulsion forces This variable is not in the paper (dealing with obstacles is not discussed.) However, this is the equivalent of AGENT_SCALE but for obstacles.
 
static float REACTION_TIME = 0.5f
 The reaction time used to define the driving force.
 
static float FORCE_DISTANCE = 0.08f
 The the fall-off distance of repulsive forces In the paper, this is the parameter B in the agent repulsion force.
 

Friends

class Agent
 

Detailed Description

Defines the simulator operating on a Zanlungo::Agent.

Member Function Documentation

virtual bool Zanlungo::Simulator::hasExpTarget ( )
inlinevirtual

Reports if there are non-common Experiment parameters that this simulator requires in the XML file.

Returns
By default, the simulator base ONLY uses common parameters. Always returns false.
virtual bool Zanlungo::Simulator::isExpTarget ( const std::string &  tagName)
inlinevirtual

Reports if the given Experiment attribute tag name belongs to this simulator.

Parameters
tagNamethe name of the considered tag
Returns
By default, the simulator base ONLY uses common parameters. Always returns false.
bool Zanlungo::Simulator::setExpParam ( const std::string &  paramName,
const std::string &  value 
)
throw (Agents::XMLParamException
)
virtual

Given an Experiment parameter name and value, sets the appropriate simulator parameter.

Parameters
paramNameA string containing the parameter name for the experiment.
valueA string containing the value for the parameter.
Returns
whether or not parameters were successfully set

The documentation for this class was generated from the following files: