Class ODPathIterator

  • All Implemented Interfaces:
    Iterator<Path>, ODDataIterator<Path>

    public class ODPathIterator
    extends ODDataIteratorImpl<Path>
    Iterator which runs through rows and columns of a matrix of Path objects, making the Path, row and column of each cell available
    Author:
    gman6028
    • Constructor Detail

      • ODPathIterator

        public ODPathIterator​(Path[][] matrixContents,
                              Zones<?> zones)
        Constructor
        Parameters:
        matrixContents - matrix of Path objects for each origin-destination cell
        zones - the zones in the current zoning
    • Method Detail

      • getCurrentValue

        public Path getCurrentValue()
        Returns the path in the current cell
        Returns:
        the Path in the current cell
      • next

        public Path next()
        Returns the path in the next cell and increments the current position
        Returns:
        the path the next cell