Package org.planit.od

Interface ODData<T>

  • Type Parameters:
    T - the type of data to be stored for each origin-destination cell
    All Known Implementing Classes:
    ODDataImpl, ODDemandMatrix, ODMatrix, ODRouteMatrix, ODSkimMatrix

    public interface ODData<T>
    Interface defining methods for objects which store data related to origin and destination
    Author:
    gman6028
    • Method Detail

      • getValue

        T getValue​(Zone origin,
                   Zone destination)
        Returns the value for a specified origin and destination
        Parameters:
        origin - specified origin
        destination - specified destination
        Returns:
        value at the specified cell
      • setValue

        void setValue​(Zone origin,
                      Zone destination,
                      T t)
        Sets the value for a specified origin and destination
        Parameters:
        origin - specified origin
        destination - specified destination
        t - value at the specified cell
      • getNumberOfTravelAnalysisZones

        int getNumberOfTravelAnalysisZones()
        Returns the number of zones contained in the object
        Returns:
        number of zones in the object
      • iterator

        ODDataIterator<T> iterator()
        Returns an iterator which can iterate through all the origin-destination cells
        Returns:
        iterator through all the origin-destination cells