Class MultimodalRouteCommons
Provides
MultimodalRoute
util functionality.
Inheritance
System.Object
MultimodalRouteCommons
Namespace: SOHMultimodalModel.Routing
Assembly: SOHMultimodalModel.dll
Syntax
public static class MultimodalRouteCommons : object
Methods
ExpectedTravelTime(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 |
---|---|
List<System.Double> |