Class ColMajorEnvIterator

java.lang.Object
  |
  +--EnvIterator
        |
        +--ColMajorEnvIterator
All Implemented Interfaces:
java.util.Iterator

public class ColMajorEnvIterator
extends EnvIterator

Environment-Based Applications:
A ColMajorEnvIterator object provides an iterator that steps through the locations of a BoundedEnv object in column-major order. It iterates through the locations and processes the columns of the environment, from 0 to C - 1, where C is the number of columns in the environment. 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 environment.

See Also:
Environment, Location

Constructor Summary
ColMajorEnvIterator(BoundedEnv environment)
          Constructs an iterator object that steps through an environment.
 
Method Summary
protected  Location findNextLocation()
          Helper Method: Finds next location for iterator.
 
Methods inherited from class EnvIterator
environment, hasNext, next, nextLocation, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColMajorEnvIterator

public ColMajorEnvIterator(BoundedEnv environment)
Constructs an iterator object that steps through an environment.
Parameters:
environment - environment to iterate through
Method Detail

findNextLocation

protected Location findNextLocation()
Helper Method: Finds next location for iterator. (Algorithm not implemented yet -- does not advance iterator.)
Overrides:
findNextLocation in class EnvIterator