Class CarParkingLayer
The
CarParkingLayer
capsules the access to all CarParkingSpace
s.
Inheritance
System.Object
CarParkingLayer
Implements
System.Collections.Generic.IEnumerable<CarParkingSpace>
System.Collections.IEnumerable
System.IDisposable
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 CarParkingLayer : VectorLayer<CarParkingSpace>, IEnumerable<CarParkingSpace>, IEnumerable, ICarParkingLayer, IVectorLayer<CarParkingSpace>, IVectorLayer, IEnvelopDataLayer, IDataSet, IDisposable, IDataLayer, IChangingLayer, INotifyChangedSource<IVectorFeature>, IModalLayer, ILayer, IModelObject
Properties
| Improve this Doc View SourceModalChoice
The
CarParkingLayer
capsules the access to all CarParkingSpace
s.
Declaration
public ModalChoice ModalChoice { get; }
Property Value
Type | Description |
---|---|
ModalChoice |
OccupancyProbability
The
CarParkingLayer
capsules the access to all CarParkingSpace
s.
Declaration
public double OccupancyProbability { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
StreetLayer
Provides access to the ISpatialGraphEnvironment on which the Cars move.
Declaration
public ISpatialGraphLayer StreetLayer { get; set; }
Property Value
Type | Description |
---|---|
ISpatialGraphLayer |
Methods
| Improve this Doc View SourceCreateOwnCarNear(Position, Double, String, String)
The
CarParkingLayer
capsules the access to all CarParkingSpace
s.
Declaration
public Car CreateOwnCarNear(Position position, double radiusInM = -1, string keyAttribute = "type", string type = "Golf")
Parameters
Type | Name | Description |
---|---|---|
Position | position | |
System.Double | radiusInM | |
System.String | keyAttribute | |
System.String | type |
Returns
Type | Description |
---|---|
Car |
InitLayer(LayerInitData, RegisterAgent, UnregisterAgent)
The
CarParkingLayer
capsules the access to all CarParkingSpace
s.
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 |
Overrides
Mars.Components.Layers.VectorLayer<SOHCarModel.Parking.CarParkingSpace>.InitLayer(Mars.Interfaces.Data.LayerInitData, Mars.Interfaces.Layers.RegisterAgent, Mars.Interfaces.Layers.UnregisterAgent)
|
Improve this Doc
View Source
Nearest(Position, Boolean)
The
CarParkingLayer
capsules the access to all CarParkingSpace
s.
Declaration
public CarParkingSpace Nearest(Position position, bool freeCapacity = true)
Parameters
Type | Name | Description |
---|---|---|
Position | position | |
System.Boolean | freeCapacity |
Returns
Type | Description |
---|---|
CarParkingSpace |
UpdateOccupancy(Double, Int32)
The
CarParkingLayer
capsules the access to all CarParkingSpace
s.
Declaration
public void UpdateOccupancy(double percent, int carCount = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Double | percent | |
System.Int32 | carCount |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IDisposable