PricingPolicy

public class PricingPolicy

A class that encapsulates the pricing policy for congestion charging intervention.

Author:Milan Lovric

Constructors

PricingPolicy

public PricingPolicy(String policyName, String fileName, int maxEdgeID, List<Integer> edgeIDs)

Reads congestion charge file which contains charges that depend on vehicle type and time of day (hour).

Parameters:
  • policyName – Name of the policy.
  • fileName – File name.
  • maxEdgeID – Maximum edge ID.
  • edgeIDs – List of edge IDs affected by the policy.
Throws:
  • IOException – if any.
  • FileNotFoundException – if any.
Return:

Map with congestion charges.

Methods

getLinkCharges

public double[] getLinkCharges(VehicleType vht, TimeOfDay time)

Get link charges for a particular combination of vehicle type and time of day.

Parameters:
  • vht – Vehicle type.
  • time – Time of day.
Returns:

Array with link charges.

getPolicy

public EnumMap<VehicleType, EnumMap<TimeOfDay, double[]>> getPolicy()

Get the entire pricing policy (for combinations of vehicle type and time of day).

Returns:Pricing policy.

getPolicyEdges

public List<Integer> getPolicyEdges()

Return policy edges.

Returns:Policy edges.

getPolicyName

public String getPolicyName()

Return policy name.

Returns:Policy name.