ucar.unidata.view.sounding
Class TuplerCell

java.lang.Object
  extended by ucar.unidata.view.sounding.ComputeCell
      extended by ucar.unidata.view.sounding.TuplerCell

public final class TuplerCell
extends ComputeCell

Creates an output VisAD Tuple individual, data objects. The output Tuple will be a RealTuple when appropriate. If the input comprises a single data object, then that object will be the output.

Version:
$Revision: 1.6 $ $Date: 2005/05/13 18:33:39 $
Author:
Steven R. Emmerson

Constructor Summary
TuplerCell(DataReference[] refs)
          Constructs from an array of references to the individual data objects.
 
Method Summary
protected  Data compute(Data[] datums)
          Computes the output Tuple.
 
Methods inherited from class ucar.unidata.view.sounding.ComputeCell
clean, disableRef, enableAllInputRefs, getInputRefs, getOutputRef, noDataField, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TuplerCell

public TuplerCell(DataReference[] refs)
           throws VisADException,
                  RemoteException
Constructs from an array of references to the individual data objects.

Parameters:
refs - The input data references.
Throws:
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
Method Detail

compute

protected Data compute(Data[] datums)
                throws TypeException,
                       VisADException,
                       RemoteException
Computes the output Tuple.

Specified by:
compute in class ComputeCell
Parameters:
datums - The input data in the same order as during construction.
Returns:
The Tuple corresponding to the input data, in order.
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.