Class WalkingAccelerator
Provides the acceleration calculation for a pedestrian.
Inheritance
System.Object
WalkingAccelerator
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SOHDomain.Steering.Acceleration
Assembly: SOHDomain.dll
Syntax
public class WalkingAccelerator
Constructors
| Improve this Doc View SourceWalkingAccelerator(IWalkingCapable)
Provides the acceleration calculation for a pedestrian.
Declaration
public WalkingAccelerator(IWalkingCapable walkingCapable)
Parameters
Type | Name | Description |
---|---|---|
IWalkingCapable | walkingCapable |
Methods
| Improve this Doc View SourceCalculateVelocity(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. |