Class WalkingAccelerator
Provides the acceleration calculation for a pedestrian.
Inheritance
System.Object
WalkingAccelerator
Namespace: SOHDomain.Steering.Acceleration
Assembly: SOHDomain.dll
Syntax
public class WalkingAccelerator : object
Constructors
WalkingAccelerator(IWalkingCapable)
Declaration
public WalkingAccelerator(IWalkingCapable walkingCapable)
Parameters
Type | Name | Description |
---|---|---|
IWalkingCapable | walkingCapable |
Methods
CalculateVelocity(ISpatialEdge)
Calculate the possible velocity of an agent depending on his or her current speed, their mean speed and the density
on the edge.
Declaration
public double CalculateVelocity(ISpatialEdge edge)
Parameters
Type | Name | Description |
---|---|---|
ISpatialEdge | edge | That provides information about the density. |
Returns
Type | Description |
---|---|
System.Double | The velocity that is reasonable depending on the given parameters. |