Class FerryStation
The
FerryStationLayer
is located somewhere and can hold
IParkingCar
s up to its capacity
extent.
Inheritance
IVectorFeature
FerryStation
Assembly: SOHFerryModel.dll
Syntax
public class FerryStation : IVectorFeature
Properties
Ferries
Provides all available ferries at this station.
Declaration
public ConcurrentDictionary<Ferry, byte> Ferries { get; }
Property Value
Type |
Description |
ConcurrentDictionary<Ferry, System.Byte> |
|
Id
Identifies the ferry station.
Declaration
public string Id { get; }
Property Value
Type |
Description |
System.String |
|
Lines
Provides all lines that visit this station.
Declaration
public ISet<string> Lines { get; }
Property Value
Type |
Description |
ISet<System.String> |
|
Name
Describes the ferry station.
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
Position
Declaration
public Position Position { get; }
Property Value
Type |
Description |
Position |
|
VectorStructured
Gets or sets the concrete feature data.
Declaration
public VectorStructuredData VectorStructured { get; set; }
Property Value
Type |
Description |
VectorStructuredData |
|
Methods
Enter(Ferry)
Enter the station with a ferry and therefore provide the possibility to be entered by
IPassengerCapables.
Declaration
public bool Enter(Ferry ferry)
Parameters
Type |
Name |
Description |
Ferry |
ferry |
The ferry that is parked in this spot. |
Returns
Type |
Description |
System.Boolean |
True if a parking spot could be found, false otherwise (Beware: the ferry is not parked here). |
Find(Position)
Finds the next ferry that is currently at this station and drives to given goal.
Declaration
public Ferry Find(Position goal)
Parameters
Type |
Name |
Description |
Position |
goal |
That a ferry to use is reaching. |
Returns
Type |
Description |
Ferry |
The next ferry that drives to that goal, null if none found |
Init(ILayer, VectorStructuredData)
Declaration
public void Init(ILayer layer, VectorStructuredData data)
Parameters
Type |
Name |
Description |
ILayer |
layer |
|
VectorStructuredData |
data |
|
Leave(Ferry)
Leave the station with given ferry.
Declaration
public bool Leave(Ferry ferry)
Parameters
Type |
Name |
Description |
Ferry |
ferry |
The ferry that leaves this spot. |
Returns
Type |
Description |
System.Boolean |
True if ferry is not on this station any more. |
Update(VectorStructuredData)
Declaration
public void Update(VectorStructuredData data)
Parameters
Type |
Name |
Description |
VectorStructuredData |
data |
|