Class ColMajorGridIterator
java.lang.Object
|
+--GridIterator
|
+--ColMajorGridIterator
- All Implemented Interfaces:
- java.util.Iterator
- public class ColMajorGridIterator
- extends GridIterator
Grid Iterator Lab:
A ColMajorGridIterator object provides an iterator that
steps through the locations of a BoundedGrid object in
column-major order. It iterates through the locations and
processes the columns of the grid, from 0 to C - 1,
where C is the number of columns in the grid. As
part of processing each column, it traverses through the
rows of that column, from 0 to R - 1, where R is the
number of rows in the grid.
- Version:
- 24 March 2004
- Author:
- Alyce Brady
- See Also:
Grid
,
Location
Constructor Summary |
ColMajorGridIterator(edu.kzoo.grid.BoundedGrid grid)
Constructs an iterator object that steps through a
grid. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColMajorGridIterator
public ColMajorGridIterator(edu.kzoo.grid.BoundedGrid grid)
- Constructs an iterator object that steps through a
grid.
- Parameters:
grid
- grid to iterate through