Interface OdData<T>

    • 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
      • getValue

        T getValue​(long originId,
                   long destinationId)
        Returns the value for a specified origin and destination by their internal id
        Parameters:
        originId - specified origin
        destinationId - specified destination
        Returns:
        value at the specified cell
      • setValue

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

        int getNumberOfOdZones()
        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
        Specified by:
        iterator in interface Iterable<T>
        Returns:
        iterator through all the origin-destination cells