org.virbo.dataset
Class OldDataSetIterator

java.lang.Object
  extended by org.virbo.dataset.OldDataSetIterator

public abstract class OldDataSetIterator
extends java.lang.Object

Iterator that provides access to each dataset point, hiding rank when when it is not needed. TODO: Rank2 and Rank3 have problems with zero length indeces.


Method Summary
static OldDataSetIterator create(QDataSet ds)
           
abstract  int getIndex(int idim)
          returns the idimth index0 that the cursor is pointing at, after the next() was called.
abstract  boolean hasNext()
          true if more data is available.
static void main(java.lang.String[] args)
           
abstract  double next()
          return the next point.
static void putValue(WritableDataSet ds, OldDataSetIterator it, double v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasNext

public abstract boolean hasNext()
true if more data is available.


next

public abstract double next()
return the next point.


getIndex

public abstract int getIndex(int idim)
returns the idimth index0 that the cursor is pointing at, after the next() was called.

Parameters:
idim -
Returns:

create

public static OldDataSetIterator create(QDataSet ds)

putValue

public static final void putValue(WritableDataSet ds,
                                  OldDataSetIterator it,
                                  double v)

main

public static void main(java.lang.String[] args)