• MARS Website
  • 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 CarParkingSpace

The
CarParkingSpace
is located somewhere and can hold
IParkingCar
s up to its capacity extent.
Inheritance
System.Object
CarParkingSpace
Implements
IVectorFeature
IModalChoiceConsumer
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.Parking
Assembly: SOHCarModel.dll
Syntax
public class CarParkingSpace : IVectorFeature, IModalChoiceConsumer

Properties

| Improve this Doc View Source

Capacity

Describes the total capacity ignoring the current occupancy.
Declaration
public int Capacity { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

HasCapacity

Determines if any free parking spaces are currently available.
Declaration
public bool HasCapacity { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Occupied

Defines if the whole car parking space is occupied for any reason (ignoring the currently parked cars). These can still leave, but new ones can not enter.
Declaration
public bool Occupied { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ParkingVehicles

Provides all currently parked cars.
Declaration
public ConcurrentDictionary<IParkingCar, byte> ParkingVehicles { get; }
Property Value
Type Description
Mars.Common.Core.Collections.NonBlockingDictionary.ConcurrentDictionary<IParkingCar, System.Byte>
| Improve this Doc View Source

Position

The centroid of this parking space.
Declaration
public Position Position { get; }
Property Value
Type Description
Position
| Improve this Doc View Source

VectorStructured

Gets or sets the concrete feature data.
Declaration
public VectorStructuredData VectorStructured { get; set; }
Property Value
Type Description
VectorStructuredData

Methods

| Improve this Doc View Source

CanConsume()

The
CarParkingSpace
is located somewhere and can hold
IParkingCar
s up to its capacity extent.
Declaration
public bool CanConsume()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Enter(IParkingCar)

Enter the parking spot with a car and "consume" its required space.
Declaration
public bool Enter(IParkingCar car)
Parameters
Type Name Description
IParkingCar car The car that is parked in this spot.
Returns
Type Description
System.Boolean True if a parking spot could be found, false otherwise (Beware: the car is not parked here).
| Improve this Doc View Source

Init(ILayer, VectorStructuredData)

The
CarParkingSpace
is located somewhere and can hold
IParkingCar
s up to its capacity extent.
Declaration
public void Init(ILayer layer, VectorStructuredData data)
Parameters
Type Name Description
ILayer layer
VectorStructuredData data
| Improve this Doc View Source

Leave(IParkingCar)

Leave the parking spot with given car.
Declaration
public bool Leave(IParkingCar car)
Parameters
Type Name Description
IParkingCar car The car that leaves this spot.
Returns
Type Description
System.Boolean True if car is not on this parking space any more.
| Improve this Doc View Source

Update(VectorStructuredData)

Initializes the
ParkingSpace
with the feature information.
Declaration
public void Update(VectorStructuredData data)
Parameters
Type Name Description
VectorStructuredData data

Implements

IVectorFeature
IModalChoiceConsumer
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © MARS GROUP. HAW Hamburg