public final class SelectorCell extends ComputeCell
Data object from an array of input
Data objects.| Constructor and Description |
|---|
SelectorCell(visad.DataReference indexRef,
visad.DataReference[] refs,
visad.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.
|
| Modifier and Type | Method and Description |
|---|---|
protected visad.Data |
compute(visad.Data[] datums)
Computes (selects) the output
Data. |
clean, disableRef, enableAllInputRefs, getInputRefs, getOutputRef, noDataField, toStringpublic SelectorCell(visad.DataReference indexRef,
visad.DataReference[] refs,
visad.Data noData)
throws visad.VisADException,
java.rmi.RemoteException
indexRef - The selector index reference.refs - The input data references.noData - The missing-data value.visad.VisADException - if a VisAD failure occurs.java.rmi.RemoteException - if a Java RMI failure occurs.java.lang.IllegalArgumentException - if refs.length == 0.protected visad.Data compute(visad.Data[] datums)
throws visad.VisADException,
java.rmi.RemoteException
Data.compute in class ComputeCelldatums - The data objects. datums[0] is
the (origin zero) selector index and must
be a Real. datums[1+i]
is the data object corresponding to the
ith DataReference of
the array used during construction.java.lang.ArrayIndexOutOfBoundsException - if ((Real)datums[0]).getValue()
is less than zero or greater than
datums.length-2.visad.VisADException - if a VisAD failure occurs.java.rmi.RemoteException - if a Java RMI failure occurs.