Class CarDriver
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Implements
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: SOHCarModel.Model
Assembly: SOHCarModel.dll
Syntax
public sealed class CarDriver : AbstractAgent, IAgent, ITickClient, IEntity, IModelObject, ICarSteeringCapable, ISteeringCapable, IPassengerCapable, IPositionable
Constructors
| Improve this Doc View SourceCarDriver(CarLayer, RegisterAgent, UnregisterAgent, Int32, Double, Double, Double, Double, ISpatialEdge, String, String)
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public CarDriver(CarLayer layer, RegisterAgent register, UnregisterAgent unregister, int driveMode, double startLat = 0, double startLon = 0, double destLat = 0, double destLon = 0, ISpatialEdge startingEdge = null, string osmRoute = "", string trafficCode = "german")
Parameters
Type | Name | Description |
---|---|---|
CarLayer | layer | |
RegisterAgent | register | |
UnregisterAgent | unregister | |
System.Int32 | driveMode | |
System.Double | startLat | |
System.Double | startLon | |
System.Double | destLat | |
System.Double | destLon | |
ISpatialEdge | startingEdge | |
System.String | osmRoute | |
System.String | trafficCode |
Properties
| Improve this Doc View SourceBrakingActivated
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public bool BrakingActivated { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Car
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public Car Car { get; set; }
Property Value
Type | Description |
---|---|
Car |
CurrentEdgeId
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public string CurrentEdgeId { get; }
Property Value
Type | Description |
---|---|
System.String |
CurrentlyCarDriving
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public bool CurrentlyCarDriving { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
GoalReached
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public bool GoalReached { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Latitude
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public double Latitude { get; }
Property Value
Type | Description |
---|---|
System.Double |
Longitude
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public double Longitude { get; }
Property Value
Type | Description |
---|---|
System.Double |
MaxSpeed
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public double MaxSpeed { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
NextTrafficLightPhase
Indicates the current light phase (red,green,yellow) of the next traffic light if available.
Declaration
public string NextTrafficLightPhase { get; }
Property Value
Type | Description |
---|---|
System.String |
OvertakingActivated
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public bool OvertakingActivated { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Position
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public Position Position { get; set; }
Property Value
Type | Description |
---|---|
Position |
PositionOnEdge
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public double PositionOnEdge { get; }
Property Value
Type | Description |
---|---|
System.Double |
RemainingDistanceOnEdge
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public double RemainingDistanceOnEdge { get; }
Property Value
Type | Description |
---|---|
System.Double |
RemainingRouteDistanceToGoal
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public double RemainingRouteDistanceToGoal { get; }
Property Value
Type | Description |
---|---|
System.Double |
Route
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public Route Route { get; }
Property Value
Type | Description |
---|---|
Route |
SpeedLimit
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public double SpeedLimit { get; }
Property Value
Type | Description |
---|---|
System.Double |
StableId
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public string StableId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TrafficCode
Get or sets the intersection behaviour model identified by code when no traffic signals are available
"german" = right before left rule
"southAfrica" = first in first out (FIFO) rule
Declaration
public string TrafficCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Velocity
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public double Velocity { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
VelocityInKm
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public double VelocityInKm { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceNotify(PassengerMessage)
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public void Notify(PassengerMessage passengerMessage)
Parameters
Type | Name | Description |
---|---|---|
PassengerMessage | passengerMessage |
Tick()
Standard implementation of a driver agent that is bound to a single car and drives around with it on the given
osmRoute.
Declaration
public override void Tick()