ucar.unidata.view.sounding
Class DomainEvaluatorCell
java.lang.Object
ucar.unidata.view.sounding.ComputeCell
ucar.unidata.view.sounding.DomainEvaluatorCell
public final class DomainEvaluatorCell
- extends ComputeCell
Evaluates a function at a Set domain.
- Version:
- $Revision: 1.5 $ $Date: 2005/05/13 18:33:29 $
- Author:
- Steven R. Emmerson
|
Method Summary |
protected Data |
compute(Data[] datums)
Computes the output value by evaluating the function at the domain
points. |
DomainEvaluatorCell
public DomainEvaluatorCell(DataReference funcRef,
DataReference domainRef,
Data noData)
throws VisADException,
RemoteException
- Constructs from a data reference for the function, a data reference for
the
Set domain, and a missing data value.
- Parameters:
funcRef - The function reference.domainRef - The evaluation domain reference.noData - The missing data value.
- Throws:
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
compute
protected Data compute(Data[] datums)
throws TypeException,
VisADException,
RemoteException
- Computes the output value by evaluating the function at the domain
points.
- Specified by:
compute in class ComputeCell
- Parameters:
datums - The input data. datums[0]
is the function to evaluate and
datums[1] is the Set
domain at which to evaluate the function.
- Returns:
- The function at the domain points. The
Object has type
Field.
- 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.