Menge Plugin Examples
A Collection of Example Plugins for the Menge Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
OpenSteerSimulator.h
Go to the documentation of this file.
1 #ifndef __OPEN_STEER_SIMULATOR_H__
2 #define __OPEN_STEER_SIMULATOR_H__
3 
9 #include "mengeCommon.h"
10 #include "SimulatorBase.h"
11 #include "OpenSteerAgent.h"
12 
13 using namespace Menge;
14 
20 namespace OpenSteer {
24  class Simulator : public Agents::SimulatorBase< Agent > {
25  public:
29  Simulator(): Agents::SimulatorBase< Agent >() {}
30 
37  virtual bool hasExpTarget() { return true; }
38 
46  virtual bool isExpTarget( const std::string & tagName ) { return tagName == "OpenSteer"; }
47 
55  virtual bool setExpParam( const std::string & paramName, const std::string & value ) throw( Agents::XMLParamException );
56 
57  protected:
58  friend class Agent;
59 
63  static float REACTION_TIME;
64 
68  static float LEAK_THROUGH;
69 
73  static float MAX_FORCE;
74 
80  static bool USE_ALLOC_PRIORITY;
81 
86  static float PRIORITY_ALLOCATION;
87  };
88 
89 } // namespace OpenSteer
90 
91 #endif // __OPEN_STEER_SIMULATOR_H__
static float REACTION_TIME
The reaction time used to define the driving force.
Definition: OpenSteerSimulator.h:63
Simulator()
Constructor.
Definition: OpenSteerSimulator.h:29
static bool USE_ALLOC_PRIORITY
Determines what steering strategy is applied. If true, uses the original 87 Reynold's allocation prio...
Definition: OpenSteerSimulator.h:80
Contains the specification of the pedestrian model based on OpenSteer.
Definition: OpenSteerAgent.cpp:6
The definition of the Agent for the OpenSteer model.
static float MAX_FORCE
The maximum allowable magnitude for steering forces.
Definition: OpenSteerSimulator.h:73
static float LEAK_THROUGH
The probability that a higher priority behavior will be skipped.
Definition: OpenSteerSimulator.h:68
The simulator definition for the OpenSteer pedestrian model.
Definition: OpenSteerSimulator.h:24
The agent definition for the OpenSteer model.
Definition: OpenSteerAgent.h:20
virtual bool isExpTarget(const std::string &tagName)
Reports if the given Experiment attribute tag name belongs to this simulator.
Definition: OpenSteerSimulator.h:46
static float PRIORITY_ALLOCATION
The total amount of allocation used in the 87 priority allocation approach.
Definition: OpenSteerSimulator.h:86
virtual bool hasExpTarget()
Reports if there are non-common Experiment parameters that this simulator requires in the XML file...
Definition: OpenSteerSimulator.h:37