Menge Plugin Examples
A Collection of Example Plugins for the Menge Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
GCFSimulator.h
Go to the documentation of this file.
1 #ifndef __GCF_SIMULATOR_H__
2 #define __GCF_SIMULATOR_H__
3 
10 #include "mengeCommon.h"
11 #include "SimulatorBase.h"
12 #include "GCFAgent.h"
13 
14 using namespace Menge;
15 
16 
22 namespace GCF {
26  class Simulator : public Agents::SimulatorBase< Agent > {
27  public:
31  Simulator(): Agents::SimulatorBase< Agent >() {}
32 
39  virtual bool hasExpTarget() { return true; }
40 
48  virtual bool isExpTarget( const std::string & tagName ) { return tagName == "GCF"; }
49 
57  virtual bool setExpParam( const std::string & paramName, const std::string & value ) throw( Agents::XMLParamException );
58 
59  protected:
60  friend class Agent;
61  // Global experimental parametes (used by agents) are static members)
65  static float REACTION_TIME;
66 
70  static float NU_AGENT;
71 
76  static float MAX_AGENT_DIST;
77 
81  static float MAX_AGENT_FORCE;
82 
86  static float AGENT_INTERP_WIDTH;
87  };
88 } // namespace GCF
89 
90 #endif // __GCF_SIMULATOR_H__
Contains the specification of the generalized centrifugal force pedestrian model. ...
Definition: Ellipse.cpp:9
static float NU_AGENT
The agent force strenth coefficient (nu)
Definition: GCFSimulator.h:70
static float MAX_AGENT_DIST
The maximum EFFECTIVE distance between agents at which any force can be generated.
Definition: GCFSimulator.h:76
Simulator()
Constructor.
Definition: GCFSimulator.h:31
Defines the simulator operating on a GCF::Agent.
Definition: GCFSimulator.h:26
The specification of the agent for the pedestrian model based on the Generalized Centrifugal Force mo...
The specification of the generalized centrifugal force model agent.
Definition: GCFAgent.h:19
virtual bool isExpTarget(const std::string &tagName)
Reports if the given Experiment attribute tag name belongs to this simulator.
Definition: GCFSimulator.h:48
static float REACTION_TIME
The reaction time used to define the driving force.
Definition: GCFSimulator.h:65
static float AGENT_INTERP_WIDTH
The distance over which agent forces are interpolated.
Definition: GCFSimulator.h:86
static float MAX_AGENT_FORCE
The maximum force applied by an agent.
Definition: GCFSimulator.h:81
virtual bool hasExpTarget()
Reports if there are non-common Experiment parameters that this simulator requires in the XML file...
Definition: GCFSimulator.h:39