Package ucar.unidata.view.sounding
Class RealEvaluatorCell
java.lang.Object
ucar.unidata.view.sounding.ComputeCell
ucar.unidata.view.sounding.RealEvaluatorCell
Evaluates a function at a
Real
point.- Version:
- $Revision: 1.6 $ $Date: 2005/05/13 18:33:36 $
- Author:
- Steven R. Emmerson
-
Constructor Summary
ConstructorsConstructorDescriptionRealEvaluatorCell
(DataReference funcRef, DataReference pointRef, Data noData) Constructs from a data reference for the function, a data reference for theReal
point, and a missing data value. -
Method Summary
Methods inherited from class ucar.unidata.view.sounding.ComputeCell
clean, disableRef, enableAllInputRefs, getInputRefs, getOutputRef, noDataField, toString
-
Constructor Details
-
RealEvaluatorCell
public RealEvaluatorCell(DataReference funcRef, DataReference pointRef, Data noData) throws VisADException, RemoteException Constructs from a data reference for the function, a data reference for theReal
point, and a missing data value.- Parameters:
funcRef
- The function reference.pointRef
- The evaluation point reference.noData
- The missing data value.- Throws:
VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
-
Method Details
-
compute
Computes the output value by evaluating the function.- Specified by:
compute
in classComputeCell
- Parameters:
datums
- The input data.datums[0]
is the function to evaluate anddatums[1]
is theReal
point at which to evaluate the function.- Returns:
- The value of the function at the point.
- Throws:
ClassCastException
- if an input data reference has the wrong type of data object.TypeException
- if a VisAD data object has the wrong type.VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-