Class MultimodalRouteCommons
Provides
MultimodalRoute
util functionality.
Inheritance
System.Object
MultimodalRouteCommons
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: SOHMultimodalModel.Routing
Assembly: SOHMultimodalModel.dll
Syntax
public static class MultimodalRouteCommons
Methods
| Improve this Doc View SourceExpectedTravelTime(MultimodalRoute, IModalCapabilitiesAgent)
Provides a key figure that indicates the expected travel time for the whole multimodal route with given agent.
Declaration
public static int ExpectedTravelTime(this MultimodalRoute multimodalRoute, IModalCapabilitiesAgent agent = null)
Parameters
Type | Name | Description |
---|---|---|
MultimodalRoute | multimodalRoute | Holds the full route with its different modalities. |
IModalCapabilitiesAgent | agent | Provides information about the walking velocity. |
Returns
Type | Description |
---|---|
System.Int32 | The calculated travel time (rounded). |
GiveDistanceOfSwitchPoints(MultimodalRoute)
Provides the distances between the switching points in a multimodal route.
Declaration
public static List<double> GiveDistanceOfSwitchPoints(MultimodalRoute multimodalRoute)
Parameters
Type | Name | Description |
---|---|---|
MultimodalRoute | multimodalRoute | That is used. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Double> |