RouteSet¶
-
public class
RouteSet
¶ RouteSet is a choice set of possible routes between an origin and a destination node.
Author: Milan Lovric
Constructors¶
RouteSet¶
-
public
RouteSet
(RoadNetwork roadNetwork)¶ Constructor.
Parameters: - roadNetwork – Road network.
Methods¶
addRoute¶
addRouteWithoutAnyChecks¶
addRouteWithoutValidityAndEndNodesCheck¶
addRouteWithoutValidityCheck¶
calculatePathsizes¶
-
public void
calculatePathsizes
()¶ Calculate path sizes (also calculates route lengths if they had not been calculated before).
calculateProbabilities¶
-
public void
calculateProbabilities
()¶ Calculates choice probabilities using logit formula.
calculateUtilities¶
-
public void
calculateUtilities
(VehicleType vht, EngineType et, TimeOfDay tod, double[] linkTravelTime, Map<VehicleType, Map<EngineType, Map<WebTAG, Double>>> energyConsumptionParameters, Map<VehicleType, Map<EngineType, Double>> relativeFuelEfficiency, Map<EnergyType, Double> energyUnitCosts, List<PricingPolicy> congestionCharges, Map<RouteChoiceParams, Double> params)¶ Re-calculates utilities for all the routes.
Parameters: - vht – Vehicle type.
- et – Engine type.
- tod – Time of day.
- linkTravelTime – Link travel times.
- energyConsumptionParameters – Base year energy consumption parameters.
- relativeFuelEfficiency – Relative fuel efficiency compared to the base year.
- energyUnitCosts – Energy unit costs.
- congestionCharges – Congestion charges.
- params – Route choice parameters.
correctUtilityWithPathSize¶
-
public void
correctUtilityWithPathSize
(int routeIndex)¶ Corrects utility with path size for a particular route within the choice set.
Parameters: - routeIndex – index of the route (list element) within the choice set
getChoiceSet¶
getDestinationNode¶
-
public DirectedNode
getDestinationNode
()¶ Returns: Destination node of the choice set.
getIndexOfRoute¶
getPathsizes¶
-
public double[]
getPathsizes
()¶ Getter method for pathsizes.
Returns: Choice pathsizes.
getProbabilities¶
-
public double[]
getProbabilities
()¶ Getter method for choice probabilities.
Returns: Choice probabilities.