org.virbo.dataset
Interface DataSetIterator

All Known Implementing Classes:
IndexListDataSetIterator, QubeDataSetIterator

public interface DataSetIterator


Method Summary
 double getValue(QDataSet ds)
          get the value from ds at the current iterator position.
 boolean hasNext()
           
 int index(int dim)
           
 int length(int dim)
           
 void next()
           
 void putValue(WritableDataSet ds, double v)
          replace the value in ds at the current iterator position.
 int rank()
          return the rank of the dataset which the iterator will walk through.
 

Method Detail

getValue

double getValue(QDataSet ds)
get the value from ds at the current iterator position.

Parameters:
ds - a dataset with capatible geometry as the iterator's geometry.
Returns:
the value of ds at the current iterator position.

hasNext

boolean hasNext()

index

int index(int dim)

length

int length(int dim)

next

void next()

putValue

void putValue(WritableDataSet ds,
              double v)
replace the value in ds at the current iterator position.

Parameters:
ds - a writable dataset with capatible geometry as the iterator's geometry.
v - the value to insert.

rank

int rank()
return the rank of the dataset which the iterator will walk through. Note this needn't be the same rank as the dataset!

Returns: