org.das2.dataset.test
Class PolynomialDataSetDescriptor

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

public class PolynomialDataSetDescriptor
extends DataSetDescriptor


Field Summary
 
Fields inherited from class org.das2.dataset.DataSetDescriptor
properties
 
Constructor Summary
PolynomialDataSetDescriptor(double[] c, Units xUnits, Units yUnits, Datum resolution)
          Creates a new instance of PolynomialDataSetDescriptor
PolynomialDataSetDescriptor(double[] c, Units xUnits, Units yUnits, Datum resolution, Datum xOffset)
           
 
Method Summary
protected  DataSet getDataSetImpl(Datum start, Datum end, Datum resolution, ProgressMonitor dasProgressMonitor)
          getDataSetImpl implements the getDataSet for this DataSetDescriptor implementation.
 Units getXUnits()
           
static void main(java.lang.String[] args)
           
 void setYMin(Datum ymin)
          limit the range of the calculated function to here.
 
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

PolynomialDataSetDescriptor

public PolynomialDataSetDescriptor(double[] c,
                                   Units xUnits,
                                   Units yUnits,
                                   Datum resolution)
Creates a new instance of PolynomialDataSetDescriptor


PolynomialDataSetDescriptor

public PolynomialDataSetDescriptor(double[] c,
                                   Units xUnits,
                                   Units yUnits,
                                   Datum resolution,
                                   Datum xOffset)
Method Detail

setYMin

public void setYMin(Datum ymin)
limit the range of the calculated function to here.


getDataSetImpl

protected DataSet getDataSetImpl(Datum start,
                                 Datum end,
                                 Datum resolution,
                                 ProgressMonitor dasProgressMonitor)
                          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

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.

main

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