Package org.planit.od.odmatrix
Class ODMatrixIterator
- java.lang.Object
-
- org.planit.od.ODDataIteratorImpl<Double>
-
- org.planit.od.odmatrix.ODMatrixIterator
-
- All Implemented Interfaces:
Iterator<Double>
,ODDataIterator<Double>
public class ODMatrixIterator extends ODDataIteratorImpl<Double>
Iterator which runs through rows and columns of an OD matrix, making the value, 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 ODMatrixIterator(org.ojalgo.array.Array2D<Double> matrixContents, Zones<?> zones)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
getCurrentValue()
Returns the value at the current cellDouble
next()
Returns the value in the current cells 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
-
-