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 | Public Attributes | List of all members
Helbing::Agent Class Reference

Agent definition for the Helbing pedestrian model. More...

#include <HelbingAgent.h>

Inheritance diagram for Helbing::Agent:

Public Member Functions

 Agent ()
 A variant of the copy constructor.
 
 ~Agent ()
 Destroys this agent instance.
 
void computeNewVelocity ()
 Computes the new velocity of this agent.
 
Vector2 agentForce (const Agent *other) const
 Compute the force due to another agent. More...
 
Vector2 obstacleForce (const Agents::Obstacle *obst) const
 Compute the force due to a nearby obstacle. More...
 
Vector2 drivingForce () const
 Computes the driving force for the agent. More...
 

Public Attributes

float _mass
 The mass of the agent.
 

Detailed Description

Agent definition for the Helbing pedestrian model.

Member Function Documentation

Vector2 Helbing::Agent::agentForce ( const Agent other) const

Compute the force due to another agent.

Parameters
otherA pointer to a neighboring agent
Returns
The force imparted by the other agent on this agent
Vector2 Helbing::Agent::drivingForce ( ) const

Computes the driving force for the agent.

Returns
The vector corresponding to the agent's driving force.
Vector2 Helbing::Agent::obstacleForce ( const Agents::Obstacle *  obst) const

Compute the force due to a nearby obstacle.

Parameters
obstA pointer to the obstacle
Returns
The force imparted by the obstacle on this agent

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