org.das2.dataset.test
Class RipplesDataSetDescriptor

java.lang.Object
  extended by org.das2.dataset.DataSetDescriptor
      extended by org.das2.dataset.test.RipplesDataSetDescriptor
All Implemented Interfaces:
Displayable

public class RipplesDataSetDescriptor
extends DataSetDescriptor


Field Summary
 
Fields inherited from class org.das2.dataset.DataSetDescriptor
properties
 
Constructor Summary
RipplesDataSetDescriptor()
           
RipplesDataSetDescriptor(double x1, double y1, double p1, double x2, double y2, double p2, int nx, int ny)
          creates a DataSetDescriptor (note the range and resolution is ignored--an unneccessary use since Render now has setDataSet method) that is the sum of two ripples.
 
Method Summary
 DataSet getDataSetImpl(Datum start, Datum end, Datum resolution, ProgressMonitor monitor)
          getDataSetImpl implements the getDataSet for this DataSetDescriptor implementation.
 Units getXUnits()
           
 Units getYUnits()
           
 Units getZUnits()
           
 
Methods inherited from class org.das2.dataset.DataSetDescriptor
addDataSetUpdateListener, create, fireDataSetUpdateEvent, getDataSet, getDataSetCache, getDataSetID, getListIcon, getListLabel, getProperty, removeDataSetUpdateListener, requestDataSet, requestDataSet, reset, setDefaultCaching, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RipplesDataSetDescriptor

public RipplesDataSetDescriptor()

RipplesDataSetDescriptor

public RipplesDataSetDescriptor(double x1,
                                double y1,
                                double p1,
                                double x2,
                                double y2,
                                double p2,
                                int nx,
                                int ny)
creates a DataSetDescriptor (note the range and resolution is ignored--an unneccessary use since Render now has setDataSet method) that is the sum of two ripples.

Parameters:
x1 - the x coordinate of the first ripple source
y1 - the y coordinate of the first ripple source
p1 - the radius of the first ripple
x2 - the x coordinate of the first ripple source
y2 - the y coordinate of the first ripple source
p2 - the radius of the first ripple
nx - the number of columns in the dataset.
ny - the number of rows in the dataset.
Method Detail

getXUnits

public Units getXUnits()
Specified by:
getXUnits in class DataSetDescriptor
Returns:
the x units of the DataSetDescriptor that parameterize the data. This is used to identify dataSet requests.

getYUnits

public Units getYUnits()

getZUnits

public Units getZUnits()

getDataSetImpl

public DataSet getDataSetImpl(Datum start,
                              Datum end,
                              Datum resolution,
                              ProgressMonitor monitor)
                       throws DasException
Description copied from class: DataSetDescriptor
getDataSetImpl implements the getDataSet for this DataSetDescriptor implementation. The getDataSet call of the abstract DataSetDescriptor uses this routine to satisfy requests and fill its cache. This caching may be disabled via setDefaultCaching. To satisfy the request, a DataSet should be returned with an x tag range that contains start and end, with a resolution finer than that requested.

Specified by:
getDataSetImpl in class DataSetDescriptor
Parameters:
start - beginning of range for the request.
end - end of the range for the request.
resolution - the resolution requirement for the reqeust. null may be used to request the finest resolution available or intrinic resolution.
Throws:
DasException