Class CarParkingLayer
The
CarParkingLayer
capsules the access to all
CarParkingSpace
s.
Inheritance
CarParkingLayer
Assembly: SOHCarModel.dll
Syntax
public class CarParkingLayer : VectorLayer<CarParkingSpace>, ICarParkingLayer, IVectorLayer<CarParkingSpace>, IModalLayer, ILayer
Properties
ModalChoice
Declaration
public ModalChoice ModalChoice { get; }
Property Value
Type |
Description |
ModalChoice |
|
OccupancyProbability
Declaration
public double OccupancyProbability { get; set; }
Property Value
Type |
Description |
System.Double |
|
StreetLayer
Provides access to the
on which the
Cars move.
Declaration
public ISpatialGraphLayer StreetLayer { get; set; }
Property Value
Methods
CreateOwnCarNear(Position, Double, String, String)
Declaration
public Car CreateOwnCarNear(Position position, double radiusInM = null, string keyAttribute = "type", string type = "Golf")
Parameters
Type |
Name |
Description |
Position |
position |
|
System.Double |
radiusInM |
|
System.String |
keyAttribute |
|
System.String |
type |
|
Returns
InitLayer(LayerInitData, RegisterAgent, UnregisterAgent)
Declaration
public override bool InitLayer(LayerInitData layerInitData, RegisterAgent registerAgentHandle = null, UnregisterAgent unregisterAgent = null)
Parameters
Type |
Name |
Description |
LayerInitData |
layerInitData |
|
RegisterAgent |
registerAgentHandle |
|
UnregisterAgent |
unregisterAgent |
|
Returns
Type |
Description |
System.Boolean |
|
Nearest(Position, Boolean)
Declaration
public CarParkingSpace Nearest(Position position, bool freeCapacity = true)
Parameters
Type |
Name |
Description |
Position |
position |
|
System.Boolean |
freeCapacity |
|
Returns
UpdateOccupancy(Double, Int32)
Declaration
public void UpdateOccupancy(double percent, int carCount = 0)
Parameters
Type |
Name |
Description |
System.Double |
percent |
|
System.Int32 |
carCount |
|
Implements
IVectorLayer<>
ILayer