Package ucar.unidata.view.sounding
Class DataCell
java.lang.Object
ucar.unidata.view.sounding.DataCell
Abstract, computational entity with one or more inputs and one output.
- Version:
- $Revision: 1.6 $ $Date: 2005/05/13 18:33:27 $
- Author:
- Steven R. Emmerson
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DataCell
(String name, DataReference outRef) Constructs from a name for the instance and the input and output data references. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clean()
Cleans this instance.boolean
disableRef
(DataReference ref) Disables an input data reference that was specified during construction.void
Enables all input data references.Returns the input data references.final DataReference
Returns the data references to the output data objects.final String
toString()
Returns a string representation of this instance.
-
Constructor Details
-
DataCell
Constructs from a name for the instance and the input and output data references. The name of theActionImpl
will be the name of this instance with the suffix ".action". The input and output data references arrays are cloned.- Parameters:
name
- The name for the instance.outRef
- The outputDataReference
.- Throws:
NullPointerException
- if any argument isnull
or if an input or output data reference isnull
.VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
-
Method Details
-
getInputRefs
Returns the input data references. The returned array is not backed by this instance.- Returns:
- The input data references.
-
getOutputRef
Returns the data references to the output data objects. The array is not backed by this instance.- Returns:
- The references to the output data objects.
-
enableAllInputRefs
Enables all input data references. An enabled input data reference will trigger recomputation of the output data object when the referenced, input data object changes.- Throws:
NullPointerException
- if an input data reference isnull
.VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
disableRef
Disables an input data reference that was specified during construction. A disabled input data reference will not trigger recomputation of the output data object when the referenced, input data object changes.- Parameters:
ref
- The input data reference to disable.- Returns:
- True if and only if the input data reference was enabled when this method was invoked.
- Throws:
NullPointerException
- if the argument isnull
.VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
clean
Cleans this instance. All data references are removed from this instance'sActionImpl
and the action is stopped. This instance may be reused after invoking this method,- Throws:
VisADException
- if a VisAD failure occurs.RemoteException
- if a Java RMI failure occurs.
-
toString
Returns a string representation of this instance. The instance's name is returned.
-