• Documentation
  • Core API
  • SmartOpenHamburg API
  • Model Components API
  • Common API

    Show / Hide Table of Contents
    • SOHBicycleModel.Common
      • BicycleConstants
      • BicycleType
      • DriverType
      • HandleBicycleType
      • HandleDriverType
    • SOHBicycleModel.Model
      • Bicycle
    • SOHBicycleModel.Parking
      • BicycleParkingLayer
      • BicycleParkingLot
      • IBicycleParkingLayer
    • SOHBicycleModel.Rental
      • BicycleRentalLayer
      • BicycleRentalStation
      • IBicycleRentalLayer
      • IBicycleSteeringAndRentalCapable
      • IRentalBicycle
      • RentalBicycle
    • SOHBicycleModel.Steering
      • BicyclePassengerHandle
      • BicycleSteeringHandle
      • IBicycleSteeringCapable
      • WiedemannAccelerator
      • WiedemannAccelerator.WiedemannAcceleratorParameters
    • SOHCarModel.Common
      • CarRouteFinder
    • SOHCarModel.Model
      • Car
      • CarDriver
      • CarLayer
      • Golf
      • ICarLayer
      • RentalCar
    • SOHCarModel.Parking
      • CarParkingLayer
      • CarParkingSpace
      • ICarParkingLayer
      • IParkingCar
    • SOHCarModel.Rental
      • CarRentalLayer
      • ICarRentalCapable
      • ICarRentalLayer
    • SOHCarModel.Steering
      • CarPassengerHandle
      • CarSteeringHandle
      • ICarSteeringCapable
    • SOHDomain.Common
      • HumanVelocityConstants
      • NormalDist
      • OsmFeatureCodes
      • OsmGroups
      • VehicleConstants
    • SOHDomain.Graph
      • ISpatialGraphLayer
      • SidewalkLayer
      • SpatialGraphMediatorLayer
      • StreetLayer
    • SOHDomain.Model
      • IModalLayer
      • IVehicleEntrance<TDriver, TPassenger, TSteeringHandle, TPassengerHandle>
      • RoadUser
      • Vehicle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>
      • WalkingShoes
    • SOHDomain.Steering.Acceleration
      • IntelligentDriverAccelerator
      • IVehicleAccelerator
      • WalkingAccelerator
    • SOHDomain.Steering.Capables
      • IPassengerCapable
      • ISteeringCapable
      • IWalkingCapable
    • SOHDomain.Steering.Common
      • PassengerMessage
    • SOHDomain.Steering.Handles
      • IdlePassengerSteeringHandle
      • IPassengerHandle
      • ISteeringHandle
      • VehiclePassengerHandle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>
      • VehicleSteeringHandle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>
      • WalkingSteeringHandle
    • SOHDomain.Steering.Handles.Intersection
      • AbstractIntersectionHandle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>
      • FifoIntersectionHandle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>
      • IIntersectionTrafficCode
      • RightBeforeLeftIntersectionHandle<TSteeringCapable, TPassengerCapable, TSteeringHandle, TPassengerHandle>
    • SOHFerryModel.Model
      • Ferry
      • FerryDriver
      • FerryLayer
      • FerrySchedulerLayer
    • SOHFerryModel.Route
      • FerryRoute
      • FerryRoute.FerryRouteEnumerator
      • FerryRouteEntry
      • FerryRouteLayer
      • FerryRouteReader
    • SOHFerryModel.Station
      • FerryStation
      • FerryStationLayer
      • IFerryStationLayer
    • SOHFerryModel.Steering
      • FerryPassengerHandle
      • FerrySteeringHandle
      • IFerryPassenger
      • IFerrySteeringCapable
    • SOHMultimodalModel.Commons
      • PedestrianAverageSpeedGenerator
      • PointOfInterest
    • SOHMultimodalModel.Layers
      • MediatorLayer
      • VectorBuildingsLayer
      • VectorLanduseLayer
      • VectorPoiLayer
      • VectorServiceLayer
    • SOHMultimodalModel.Layers.TrafficLight
      • TrafficLight
      • TrafficLightController
      • TrafficLightLayer
    • SOHMultimodalModel.Model
      • Citizen
      • CitizenLayer
      • CitizenSchedulerLayer
      • CycleTraveler
      • CycleTravelerLayer
      • CycleTravelerSchedulerLayer
      • DockWorker
      • DockWorkerLayer
      • DockWorkerSchedulerLayer
      • GenderType
      • HumanTraveler
      • HumanTravelerLayer
      • ModalityChooser
      • MultiCapableAgent<TLayer>
      • PassengerTraveler
      • PassengerTravelerLayer
      • Traveler<TLayer>
      • TravelerConstants
      • WorkingType
    • SOHMultimodalModel.Multimodal
      • AbstractMultimodalLayer
      • IMultimodalLayer
      • IMultimodalRouteFinder
      • MultimodalAgent<TLayer>
      • Whereabouts
    • SOHMultimodalModel.Output.Route
      • MultimodalRouteOutputAdapter
    • SOHMultimodalModel.Output.Ticks
      • ITickOutputAgent
      • TickOutputAdapter
    • SOHMultimodalModel.Output.Trips
      • ITripSavingAgent
      • TripPositionCoordinateConverter
      • TripsLine
      • TripsLineConverter
      • TripsOutputAdapter
    • SOHMultimodalModel.Planning
      • DayPlanGenerator
      • Tour
      • Trip
      • TripReason
    • SOHMultimodalModel.Routing
      • GatewayLayer
      • GatewayPoint
      • MultimodalRouteCommons
      • MultimodalRouteFinder
      • WalkingCarDrivingRentalMultimodalRoute
      • WalkingDrivingMultimodalRoute
      • WalkingFerryDrivingMultimodalRoute
      • WalkingMultimodalRoute
      • WalkingTrainDrivingMultimodalRoute
    • SOHMultimodalModel.Steering
      • IWalkingRoadUser

    Class CarDriver

    Standard implementation of a driver agent that is bound to a single car and drives around with it on the given osmRoute.
    Inheritance
    AbstractAgent
    CarDriver
    Implements
    ICarSteeringCapable
    ISteeringCapable
    IPassengerCapable
    IPositionable
    Namespace: SOHCarModel.Model
    Assembly: SOHCarModel.dll
    Syntax
    public sealed class CarDriver : AbstractAgent, ICarSteeringCapable, ISteeringCapable, IPassengerCapable, IPositionable

    Constructors

    CarDriver(CarLayer, RegisterAgent, UnregisterAgent, Int32, Double, Double, Double, Double, ISpatialEdge, String, String)

    Declaration
    public CarDriver(CarLayer layer, RegisterAgent register, UnregisterAgent unregister, int driveMode, double startLat = null, double startLon = null, double destLat = null, double destLon = null, 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

    BrakingActivated

    Declaration
    public bool BrakingActivated { get; }
    Property Value
    Type Description
    System.Boolean

    Car

    Declaration
    public Car Car { get; set; }
    Property Value
    Type Description
    Car

    CurrentEdgeId

    Declaration
    public string CurrentEdgeId { get; }
    Property Value
    Type Description
    System.String

    CurrentlyCarDriving

    Declaration
    public bool CurrentlyCarDriving { get; }
    Property Value
    Type Description
    System.Boolean

    GoalReached

    Declaration
    public bool GoalReached { get; }
    Property Value
    Type Description
    System.Boolean

    Latitude

    Declaration
    public double Latitude { get; }
    Property Value
    Type Description
    System.Double

    Longitude

    Declaration
    public double Longitude { get; }
    Property Value
    Type Description
    System.Double

    MaxSpeed

    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

    Declaration
    public bool OvertakingActivated { get; set; }
    Property Value
    Type Description
    System.Boolean

    Position

    Declaration
    public Position Position { get; set; }
    Property Value
    Type Description
    Position

    PositionOnEdge

    Declaration
    public double PositionOnEdge { get; }
    Property Value
    Type Description
    System.Double

    RemainingDistanceOnEdge

    Declaration
    public double RemainingDistanceOnEdge { get; }
    Property Value
    Type Description
    System.Double

    RemainingRouteDistanceToGoal

    Declaration
    public double RemainingRouteDistanceToGoal { get; }
    Property Value
    Type Description
    System.Double

    Route

    Declaration
    public Route Route { get; }
    Property Value
    Type Description
    Route

    SpeedLimit

    Declaration
    public double SpeedLimit { get; }
    Property Value
    Type Description
    System.Double

    StableId

    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

    Declaration
    public double Velocity { get; set; }
    Property Value
    Type Description
    System.Double

    VelocityInKm

    Declaration
    public double VelocityInKm { get; }
    Property Value
    Type Description
    System.Double

    Methods

    Notify(PassengerMessage)

    Declaration
    public void Notify(PassengerMessage passengerMessage)
    Parameters
    Type Name Description
    PassengerMessage passengerMessage

    Tick()

    Declaration
    public override void Tick()

    Implements

    ICarSteeringCapable
    ISteeringCapable
    IPassengerCapable
    IPositionable
    Back to top Copyright © MARS GROUP.
    HAW Hamburg