Class DirectionIter

java.lang.Object
  |
  +--DirectionIter

public class DirectionIter
extends java.lang.Object

This class provides an iterator for the neighborhood of a point in the simulation. Each DirectionIter has two fields which are combined to form the next Direction object returned


Method Summary
 Direction next()
          creates next Direction to return and generates the components of the next Direction; halts when has exhausted all directions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

next

public Direction next()
creates next Direction to return and generates the components of the next Direction; halts when has exhausted all directions.
Returns:
new Direction object