Package org.planit.od

Interface ODDataIterator<T>

  • Type Parameters:
    T - the type of data stored for each origin-destination cell
    All Superinterfaces:
    Iterator<T>
    All Known Implementing Classes:
    ODDataIteratorImpl, ODMatrixIterator, ODPathIterator

    public interface ODDataIterator<T>
    extends Iterator<T>
    Defines methods for an iterator which moves through a matrix of origin-destination cells
    Author:
    gman6028
    • Method Detail

      • getCurrentOrigin

        Zone getCurrentOrigin()
        Returns the origin zone object for the current cell
        Returns:
        the origin zone object at the current cell
      • getCurrentDestination

        Zone getCurrentDestination()
        Returns the destination zone object for the current cell
        Returns:
        the destination zone object for the current cell
      • getCurrentValue

        T getCurrentValue()
        Returns the value at the current cell
        Returns:
        the value at the current cell