Package org.planit.od.odpath
Class ODPathIterator
- java.lang.Object
-
- org.planit.od.ODDataIteratorImpl<Path>
-
- org.planit.od.odpath.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
-
-
Field Summary
-
Fields inherited from class org.planit.od.ODDataIteratorImpl
currentLocation, destinationId, originId, zones
-
-
Constructor Summary
Constructors Constructor Description ODPathIterator(Path[][] matrixContents, Zones<?> zones)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
getCurrentValue()
Returns the path in the current cellPath
next()
Returns the path in the next cell and increments the current position-
Methods inherited from class org.planit.od.ODDataIteratorImpl
getCurrentDestination, getCurrentOrigin, hasNext, updateCurrentLocation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-