anl.aida.data
Class DataFrameIndex

java.lang.Object
  extended by anl.aida.data.DataFrameIndex

public class DataFrameIndex
extends java.lang.Object

Encapsulates an index into a DataFrame data array.

Version:
$Revision$ $Date$

Field Summary
(package private)  ucar.ma2.Index index
           
private  int[] indices
           
private  int kIndex
           
private  int tIndex
           
private  int xIndex
           
private  int yIndex
           
 
Constructor Summary
DataFrameIndex(DataFrame frame)
          Creates a DataFrameIndex for the specified DataFrame.
 
Method Summary
 void set(int index0)
          Sets the first index value.
 void set(int index0, int index1)
          Sets the first two index values.
 void set(int timeStep, int layer, int x, int y)
          Sets all the indices for all the coordinate axes.
 void setLayer(int layer)
          Sets the layer index value.
 void setTime(int timeStep)
          Sets the time step index value.
 void setXY(int x, int y)
          Sets the x and y index value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xIndex

private int xIndex

yIndex

private int yIndex

tIndex

private int tIndex

kIndex

private int kIndex

indices

private int[] indices

index

ucar.ma2.Index index
Constructor Detail

DataFrameIndex

public DataFrameIndex(DataFrame frame)
Creates a DataFrameIndex for the specified DataFrame.

Parameters:
frame - the DataFrame that this is an index for
Method Detail

setTime

public void setTime(int timeStep)
Sets the time step index value.

Parameters:
timeStep - the time step.

setLayer

public void setLayer(int layer)
Sets the layer index value.

Parameters:
layer - the layer index value

set

public void set(int index0,
                int index1)
Sets the first two index values.

Parameters:
index0 -
index1 -

set

public void set(int index0)
Sets the first index value.

Parameters:
index0 - the index value

set

public void set(int timeStep,
                int layer,
                int x,
                int y)
Sets all the indices for all the coordinate axes.

Parameters:
timeStep - the time ste p index
layer - the layer index
x - the x index
y - the y index

setXY

public void setXY(int x,
                  int y)
Sets the x and y index value

Parameters:
x - the x value
y - the y value