AssignableODMatrix

public interface AssignableODMatrix

Origin-destination matrix for passenger vehicles.

Author:Milan Lovric

Methods

getIntFlow

public int getIntFlow(String originZone, String destinationZone)

Gets the flow for a given origin-destination pair as a whole number.

Parameters:
  • originZone – Origin zone.
  • destinationZone – Destination zone.
Returns:

Origin-destination flow.

getSortedDestinations

public List<String> getSortedDestinations()

Gets the sroted list of destinations.

Returns:List of destination zones.

getSortedOrigins

public List<String> getSortedOrigins()

Gets the sorted list of origins.

Returns:List of origin zones.

getTotalIntFlow

public int getTotalIntFlow()

Gets sum of all the flows in the matrix.

Returns:Sum of all the flows in the matrix (i.e. number of trips).

getUnsortedDestinations

public List<String> getUnsortedDestinations()

Gets the unsorted list of destinations.

Returns:List of destination zones.

getUnsortedOrigins

public List<String> getUnsortedOrigins()

Gets the unsorted list of origins.

Returns:List of origin zones.