anl.aida.plot
Class BubbleExperiments.Data

java.lang.Object
  extended by anl.aida.plot.BubbleExperiments.Data
All Implemented Interfaces:
BubbleDataset
Enclosing class:
BubbleExperiments

 class BubbleExperiments.Data
extends java.lang.Object
implements BubbleDataset


Field Summary
private  java.util.List<java.lang.String> categories
           
private  float[][][] data
           
 
Constructor Summary
BubbleExperiments.Data()
           
 
Method Summary
 java.lang.Iterable<java.lang.String> categories()
          Gets an iterable over the categories in this dataset.
 int getCategoryCount()
          Gets the number of categories in this dataset.
 int getCategoryIndex(java.lang.String category)
          Gets the index of the specified category.
 java.lang.String getFormattedTimeStep(int timestep)
          Gets the formatted timestep (e.g.
 int getTimeStepCount()
          Gets the number of timesteps.
 NumericRange getXRange()
          Gets the range of x values over all timesteps and categories.
 double getXValue(int rowIndex, int timestep)
          Gets the x value for the particular category at the specified timestep.
 NumericRange getYRange()
          Gets the range of y values over all timesteps and categories.
 double getYValue(int rowIndex, int timestep)
          Gets the y value for the particular category at the specified timestep.
 NumericRange getZRange()
          Gets the range of z values over all timesteps and categories.
 double getZValue(int rowIndex, int timestep)
          Gets the z value for the particular category at the specified timestep.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

categories

private java.util.List<java.lang.String> categories

data

private float[][][] data
Constructor Detail

BubbleExperiments.Data

public BubbleExperiments.Data()
Method Detail

categories

public java.lang.Iterable<java.lang.String> categories()
Description copied from interface: BubbleDataset
Gets an iterable over the categories in this dataset.

Specified by:
categories in interface BubbleDataset
Returns:
an iterable over the categories in this dataset.

getFormattedTimeStep

public java.lang.String getFormattedTimeStep(int timestep)
Description copied from interface: BubbleDataset
Gets the formatted timestep (e.g. a formatted date, a year, etc.)

Specified by:
getFormattedTimeStep in interface BubbleDataset
Parameters:
timestep - the formatted timestep
Returns:

getCategoryIndex

public int getCategoryIndex(java.lang.String category)
Description copied from interface: BubbleDataset
Gets the index of the specified category.

Specified by:
getCategoryIndex in interface BubbleDataset
Parameters:
category - the category whose index we want
Returns:
the index of the specified category.

getCategoryCount

public int getCategoryCount()
Description copied from interface: BubbleDataset
Gets the number of categories in this dataset.

Specified by:
getCategoryCount in interface BubbleDataset
Returns:
the number of categories in this dataset.

getTimeStepCount

public int getTimeStepCount()
Description copied from interface: BubbleDataset
Gets the number of timesteps.

Specified by:
getTimeStepCount in interface BubbleDataset
Returns:
the number of timesteps.

getXValue

public double getXValue(int rowIndex,
                        int timestep)
Description copied from interface: BubbleDataset
Gets the x value for the particular category at the specified timestep.

Specified by:
getXValue in interface BubbleDataset
Parameters:
rowIndex - the category index
timestep - the timestep
Returns:
the x value for the particular category at the specified timestep.

getYValue

public double getYValue(int rowIndex,
                        int timestep)
Description copied from interface: BubbleDataset
Gets the y value for the particular category at the specified timestep.

Specified by:
getYValue in interface BubbleDataset
Parameters:
rowIndex - the category index
timestep - the timestep
Returns:
the y value for the particular category at the specified timestep.

getZValue

public double getZValue(int rowIndex,
                        int timestep)
Description copied from interface: BubbleDataset
Gets the z value for the particular category at the specified timestep.

Specified by:
getZValue in interface BubbleDataset
Parameters:
rowIndex - the category index
timestep - the timestep
Returns:
the z value for the particular category at the specified timestep.

getXRange

public NumericRange getXRange()
Description copied from interface: BubbleDataset
Gets the range of x values over all timesteps and categories.

Specified by:
getXRange in interface BubbleDataset
Returns:
the range of x values over all timesteps and categories.

getYRange

public NumericRange getYRange()
Description copied from interface: BubbleDataset
Gets the range of y values over all timesteps and categories.

Specified by:
getYRange in interface BubbleDataset
Returns:
the range of y values over all timesteps and categories.

getZRange

public NumericRange getZRange()
Description copied from interface: BubbleDataset
Gets the range of z values over all timesteps and categories.

Specified by:
getZRange in interface BubbleDataset
Returns:
the range of z values over all timesteps and categories.