Class FerryRouteReader
Provides the possibility to read a ferry route from a corresponding csv.
Inheritance
System.Object
FerryRouteReader
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.Route
Assembly: SOHFerryModel.dll
Syntax
public static class FerryRouteReader
Methods
| Improve this Doc View SourceRead(String, FerryStationLayer)
Reads the input csv and builds a FerrySchedule by line-
Declaration
public static Dictionary<int, FerryRoute> Read(string file, FerryStationLayer ferryStationLayer)
Parameters
Type | Name | Description |
---|---|---|
System.String | file | Holds schedule and route information. |
FerryStationLayer | ferryStationLayer | Provides access to the ferry stations that are referenced in the csv. |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.Int32, FerryRoute> | A dictionary with line id to FerryRoute. |