Defines the simulator operating on a Karamouzas::Agent.
More...
#include <KaramouzasSimulator.h>
|
| 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 ¶mName, const std::string &value) throw ( Agents::XMLParamException ) |
| Given an Experiment parameter name and value, sets the appropriate simulator parameter. More...
|
|
|
static float | ORIENT_WEIGHT = 0.8f |
| Agent orientation is a weighted average between preferred direction and actual direction. This is that weight.
|
|
static float | COS_FOV_ANGLE = cos( 100.f * DEG_TO_RAD ) |
| The half angle that defines the field of view around orientation.
|
|
static float | REACTION_TIME = 0.4f |
| The reaction time used to define the driving force.
|
|
static float | WALL_STEEPNESS = 2.f |
| The steepness that the wall forces fall off: K > 0.
|
|
static float | WALL_DISTANCE = 2.f |
| The safe distance agents prefer to keep from the walls.
|
|
static int | COLLIDING_COUNT = 5 |
| The number of agents considered in the colliding set.
|
|
static float | D_MIN = 1.f |
| The critical distance at which agent response force climbs.
|
|
static float | D_MID = 8.f |
| The distance at which a constant agent response force begins.
|
|
static float | D_MAX = 10.f |
| The distance at which there is no longer an agent response force.
|
|
static float | AGENT_FORCE = 3.f |
| The level of response force in the constant region.
|
|
Defines the simulator operating on a Karamouzas::Agent.
virtual bool Karamouzas::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 Karamouzas::Simulator::isExpTarget |
( |
const std::string & |
tagName | ) |
|
|
inlinevirtual |
Reports if the given Experiment attribute tag name belongs to this simulator.
- Parameters
-
tagName | the name of the considered tag |
- Returns
- By default, the simulator base ONLY uses common parameters. Always returns false.
bool Karamouzas::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
-
paramName | A string containing the parameter name for the experiment. |
value | A 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: