ucar.visad
Class VisADMath.Index

java.lang.Object
  extended by ucar.visad.VisADMath.Index
Enclosing class:
VisADMath

protected static final class VisADMath.Index
extends Object

Provides support for indexing sample points.


Constructor Summary
protected VisADMath.Index(GriddedSet set)
          Constructs from a GriddedSet.
 
Method Summary
protected  int getIndex()
          Returns the current, cumulative index.
protected  int getPreviousIndex(int idim)
          Returns the previous dimensional index.
protected  boolean hasPoint()
          Indicates if there are more elements.
protected  void increment()
          Advances to the next element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisADMath.Index

protected VisADMath.Index(GriddedSet set)
                   throws VisADException
Constructs from a GriddedSet.

Parameters:
set - The GriddedSet.
Throws:
VisADException - if a core VisAD failure occurs.
Method Detail

getIndex

protected int getIndex()
Returns the current, cumulative index.

Returns:
The current, cumulative index.

getPreviousIndex

protected int getPreviousIndex(int idim)
Returns the previous dimensional index.

Parameters:
idim - Which dimensional index to return.
Returns:
The previous index.

hasPoint

protected boolean hasPoint()
Indicates if there are more elements.

Returns:
True if and only if there are more points.

increment

protected void increment()
Advances to the next element.