Class VehicleSteeringHandle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>
Inheritance
System.Object
VehicleSteeringHandle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>
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()
Assembly: SOHDomain.dll
Syntax
public class VehicleSteeringHandle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle> : VehiclePassengerHandle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>, ISteeringHandle, IPassengerHandle where TSteeringCapable : ISteeringCapable where TPassengerCapable : IPassengerCapable where TSteeringHandle : ISteeringHandle where TPassengerHandle : IPassengerHandle
Type Parameters
Name |
Description |
TSteeringCapable |
|
TPassengerCapable |
|
TSteeringHandle |
|
TPassengerHandle |
|
Constructors
|
Improve this Doc
View Source
VehicleSteeringHandle(ISpatialGraphEnvironment, Vehicle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>, Double)
Declaration
public VehicleSteeringHandle(ISpatialGraphEnvironment environment, Vehicle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle> vehicle, double standardSpeedLimit = 13.88888888888889)
Parameters
Type |
Name |
Description |
ISpatialGraphEnvironment |
environment |
|
Vehicle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle> |
vehicle |
|
System.Double |
standardSpeedLimit |
|
Fields
|
Improve this Doc
View Source
MaximalDeceleration
Declaration
protected const double MaximalDeceleration = 1000
Field Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
UrbanSafetyDistanceInM
Declaration
protected const double UrbanSafetyDistanceInM = 50
Field Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
VehicleAccelerator
Declaration
protected IVehicleAccelerator VehicleAccelerator
Field Value
Properties
|
Improve this Doc
View Source
Environment
Declaration
public ISpatialGraphEnvironment Environment { get; }
Property Value
|
Improve this Doc
View Source
GoalReached
Declaration
public bool GoalReached { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
NextTrafficLightPhase
Declaration
public TrafficLightPhase NextTrafficLightPhase { get; protected set; }
Property Value
|
Improve this Doc
View Source
RemainingDistanceOnEdge
Declaration
public double RemainingDistanceOnEdge { get; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Route
Declaration
public Route Route { get; set; }
Property Value
|
Improve this Doc
View Source
SpeedLimit
Declaration
public double SpeedLimit { get; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Velocity
Declaration
public double Velocity { get; }
Property Value
Type |
Description |
System.Double |
|
Methods
|
Improve this Doc
View Source
CalculateDrivingDistance(Double)
Declaration
protected virtual double CalculateDrivingDistance(double biggestDeceleration)
Parameters
Type |
Name |
Description |
System.Double |
biggestDeceleration |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
CalculateSpeedChange(Double, Double, Double, Double, Double)
Declaration
protected virtual double CalculateSpeedChange(double currentSpeed, double maxSpeed, double distanceToVehicleAhead, double speedVehicleAhead, double accelerationVehicleAhead)
Parameters
Type |
Name |
Description |
System.Double |
currentSpeed |
|
System.Double |
maxSpeed |
|
System.Double |
distanceToVehicleAhead |
|
System.Double |
speedVehicleAhead |
|
System.Double |
accelerationVehicleAhead |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
ChangeLane()
Declaration
protected void ChangeLane()
|
Improve this Doc
View Source
ExploreEnvironment()
Declaration
protected SpatialGraphExploreResult ExploreEnvironment()
Returns
|
Improve this Doc
View Source
FindEntityAhead(SpatialGraphExploreResult, Route)
Tries to find an entity ahead for given route within the explore result.
Declaration
public (ISpatialGraphEntity, double) FindEntityAhead(SpatialGraphExploreResult exploreResult, Route route)
Parameters
Type |
Name |
Description |
SpatialGraphExploreResult |
exploreResult |
Contains the exploration of the vehicle. |
Route |
route |
Holds the lanes for all relevant edges. |
Returns
Type |
Description |
System.ValueTuple<ISpatialGraphEntity, System.Double> |
The next entity on any of the upcoming lanes and its distance to the calling vehicle.
Null (and 0 as distance) if no entity could be found within the exploration distance.
|
|
Improve this Doc
View Source
FindEntityOnSameEdge(SpatialGraphExploreResult, Int32, Boolean)
Finds an entity and the distance to this vehicle within the current edge on a specific lane if it exists.
Declaration
public (ISpatialGraphEntity, double) FindEntityOnSameEdge(SpatialGraphExploreResult exploreResult, int lane, bool forward)
Parameters
Type |
Name |
Description |
SpatialGraphExploreResult |
exploreResult |
Holds exploration data. |
System.Int32 |
lane |
On that the searched entity may be located. |
System.Boolean |
forward |
True, if searching in front, false if searching backwards. |
Returns
Type |
Description |
System.ValueTuple<ISpatialGraphEntity, System.Double> |
The found entity and the relative distance to this vehicle. (null, 0) if none is found. |
|
Improve this Doc
View Source
HandleIntersectionAhead(SpatialGraphExploreResult, Double)
Declaration
protected virtual double HandleIntersectionAhead(SpatialGraphExploreResult exploreResult, double biggestDeceleration)
Parameters
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Move()
Declaration
public virtual void Move()
|
Improve this Doc
View Source
MoveFromNodeSuccessfully()
Declaration
protected bool MoveFromNodeSuccessfully()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetIntersectionTrafficCode(String)
Declaration
public void SetIntersectionTrafficCode(string trafficCode)
Parameters
Type |
Name |
Description |
System.String |
trafficCode |
|
Implements