Class FerryStation
The
FerryStationLayer is located somewhere and can hold IParkingCars up to its capacity
extent.
Inheritance
System.Object
FerryStation
Implements
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: SOHFerryModel.Station
Assembly: SOHFerryModel.dll
Syntax
public class FerryStation : IVectorFeature
Properties
| Improve this Doc View SourceFerries
Provides all available ferries at this station.
Declaration
public ConcurrentDictionary<Ferry, byte> Ferries { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Concurrent.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 |
|---|---|
| System.Collections.Generic.ISet<System.String> |
Name
Describes the ferry station.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Position
The centroid of this FerryStation.
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
| Improve this Doc View SourceEnter(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)
The
FerryStationLayer is located somewhere and can hold IParkingCars up to its capacity
extent.
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)
Initializes the FerryStation with the feature information.
Declaration
public void Update(VectorStructuredData data)
Parameters
| Type | Name | Description |
|---|---|---|
| VectorStructuredData | data |