Package ucar.unidata.view.sounding
Class SelectorCell
java.lang.Object
ucar.unidata.view.sounding.ComputeCell
ucar.unidata.view.sounding.SelectorCell
- Version:
- $Revision: 1.7 $ $Date: 2005/05/13 18:33:37 $
- Author:
- Steven R. Emmerson
-
Constructor Summary
ConstructorsConstructorDescriptionSelectorCell
(DataReference indexRef, DataReference[] refs, Data noData) Constructs from a reference to a selector index, an array of references to the individual data objects, and a missing output data value. -
Method Summary
Methods inherited from class ucar.unidata.view.sounding.ComputeCell
clean, disableRef, enableAllInputRefs, getInputRefs, getOutputRef, noDataField, toString
-
Constructor Details
-
SelectorCell
public SelectorCell(DataReference indexRef, DataReference[] refs, Data noData) throws VisADException, RemoteException Constructs from a reference to a selector index, an array of references to the individual data objects, and a missing output data value.- Parameters:
indexRef
- The selector index reference.refs
- The input data references.noData
- The missing-data value.- Throws:
VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.IllegalArgumentException
- ifrefs.length == 0
.
-
-
Method Details
-
compute
Computes (selects) the outputData
.- Specified by:
compute
in classComputeCell
- Parameters:
datums
- The data objects.datums[0]
is the (origin zero) selector index and must be aReal
.datums[1+i]
is the data object corresponding to thei
thDataReference
of the array used during construction.- Returns:
- The input datum corresponding to the selector index.
- Throws:
ArrayIndexOutOfBoundsException
- if((Real)datums[0]).getValue()
is less than zero or greater thandatums.length-2
.VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-