org.virbo.dataset
Class IndexGenDataSet

java.lang.Object
  extended by org.virbo.dataset.AbstractDataSet
      extended by org.virbo.dataset.IndexGenDataSet
All Implemented Interfaces:
MutablePropertyDataSet, QDataSet
Direct Known Subclasses:
TagGenDataSet

public class IndexGenDataSet
extends AbstractDataSet

This is also used a base class.


Field Summary
 
Fields inherited from class org.virbo.dataset.AbstractDataSet
properties
 
Fields inherited from interface org.virbo.dataset.QDataSet
CACHE_TAG, CADENCE, COORDINATE_FRAME, DELTA_MINUS, DELTA_PLUS, DEPEND_0, DEPEND_1, DEPEND_2, FILL_VALUE, LABEL, MAX_PLANE_COUNT, MAX_RANK, MONOTONIC, NAME, PLANE_0, QUBE, RENDER_TYPE, SCALE_TYPE, TITLE, TYPICAL_MAX, TYPICAL_MIN, UNITS, USER_PROPERTIES, VALID_MAX, VALID_MIN, WEIGHTS_PLANE
 
Constructor Summary
IndexGenDataSet(int length)
          Creates a new instance of IndexGenDataSet
 
Method Summary
 int length()
          return the length of the first dimension
 int rank()
          returns the rank of the dataset, which is the number of indeces used to access data.
 double value(int i)
          rank 1 accessor.
 
Methods inherited from class org.virbo.dataset.AbstractDataSet
length, length, property, property, property, putProperty, putProperty, putProperty, toString, value, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndexGenDataSet

public IndexGenDataSet(int length)
Creates a new instance of IndexGenDataSet

Method Detail

rank

public int rank()
Description copied from interface: QDataSet
returns the rank of the dataset, which is the number of indeces used to access data. Only rank 1, 2, and 3 datasets are supported in the interface. When a dataset's rank is 4 or greater, it should implement the HighRankDataSet interface which affords a slice operation to reduce rank. When a dataset's rank is 0, it should implement the RankZeroDataSet interface, which has a no-argument accessor. (TODO: Note that rank 0 and rank N have very limited use, so many routines aren't coded to handle them.)

Specified by:
rank in interface QDataSet
Specified by:
rank in class AbstractDataSet

value

public double value(int i)
Description copied from interface: QDataSet
rank 1 accessor.

Specified by:
value in interface QDataSet
Overrides:
value in class AbstractDataSet

length

public int length()
Description copied from interface: QDataSet
return the length of the first dimension

Specified by:
length in interface QDataSet
Overrides:
length in class AbstractDataSet