Class BicycleParkingLayer
Inheritance
System.Object
BicycleParkingLayer
Implements
System.Collections.Generic.IEnumerable<BicycleParkingLot>
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: SOHBicycleModel.Parking
Assembly: SOHBicycleModel.dll
Syntax
public class BicycleParkingLayer : VectorLayer<BicycleParkingLot>, IEnumerable<BicycleParkingLot>, IEnumerable, IVectorLayer<BicycleParkingLot>, IVectorLayer, IEnvelopDataLayer, IDataSet, IDisposable, IDataLayer, IChangingLayer, INotifyChangedSource<IVectorFeature>, IBicycleParkingLayer, IModalLayer, ILayer, IModelObject
Properties
| Improve this Doc View SourceGraphLayer
Provides access to the ISpatialGraphEnvironment on which the Bicycles move.
Declaration
public ISpatialGraphLayer GraphLayer { get; set; }
Property Value
Type | Description |
---|---|
ISpatialGraphLayer |
ModalChoice
Declaration
public ModalChoice ModalChoice { get; }
Property Value
Type | Description |
---|---|
ModalChoice |
Methods
| Improve this Doc View SourceCreateOwnBicycleNear(Position, Double, Double, String, String)
Creates a bicycle near given position within given radius with a probability near a parking lot.
Declaration
public Bicycle CreateOwnBicycleNear(Position position, double radius, double useBikeAndRideParkingPercentage, string keyAttribute = "type", string type = "city")
Parameters
Type | Name | Description |
---|---|---|
Position | position | |
System.Double | radius | Defines the radius within that the bicycle should be located. Uses a random node if no position within the radius could be found. |
System.Double | useBikeAndRideParkingPercentage | Probability that the bicycle is locked in a parking lot. |
System.String | keyAttribute | Identifies the types attribute name of the input file for bicycles. |
System.String | type | Identifies the type of bicycle that should be created. |
Returns
Type | Description |
---|---|
Bicycle | A bicycle of given type at a node that tries to fit given spatial limitations, on a random node otherwise. |
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 |
Overrides
Mars.Components.Layers.VectorLayer<SOHBicycleModel.Parking.BicycleParkingLot>.InitLayer(Mars.Interfaces.Data.LayerInitData, Mars.Interfaces.Layers.RegisterAgent, Mars.Interfaces.Layers.UnregisterAgent)
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IDisposable