Class BicycleParkingLayer
Inheritance
BicycleParkingLayer
Assembly: SOHBicycleModel.dll
Syntax
public class BicycleParkingLayer : VectorLayer<BicycleParkingLot>, IBicycleParkingLayer, IModalLayer
Properties
GraphLayer
Provides access to the
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
CreateOwnBicycleNear(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 |
|
Implements
IModalLayer