org.das2.dataset.test
Class RipplesDataSetDescriptor
java.lang.Object
org.das2.dataset.DataSetDescriptor
org.das2.dataset.test.RipplesDataSetDescriptor
- All Implemented Interfaces:
- Displayable
public class RipplesDataSetDescriptor
- extends DataSetDescriptor
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. |
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 |
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 sourcey1
- the y coordinate of the first ripple sourcep1
- the radius of the first ripplex2
- the x coordinate of the first ripple sourcey2
- the y coordinate of the first ripple sourcep2
- the radius of the first ripplenx
- the number of columns in the dataset.ny
- the number of rows in the dataset.
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