|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.view.sounding.ComputeCell
public abstract class ComputeCell
Abstract, computational entity with one or more inputs and one output.
| Constructor Summary | |
|---|---|
protected |
ComputeCell(String name,
DataReference[] inRefs,
Data initValue)
Constructs from a name for the instance and the input and output data references. |
| Method Summary | |
|---|---|
void |
clean()
Cleans this instance. |
protected abstract Data |
compute(Data[] datums)
Computes the output data objects. |
boolean |
disableRef(DataReference ref)
Disables an input data reference. |
void |
enableAllInputRefs()
Enables all input data references. |
DataReference[] |
getInputRefs()
Returns the input data references. |
DataReference |
getOutputRef()
Returns the data references to the output data objects. |
protected static FlatField |
noDataField(RealType rangeType)
Convenience method for creating an empty atmospheric profile of a given parameter. |
String |
toString()
Returns a string representation of this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ComputeCell(String name,
DataReference[] inRefs,
Data initValue)
throws RemoteVisADException,
VisADException,
RemoteException
ActionImpl will be the name
of this instance with the suffix ".action". The input and output
data references arrays are cloned. Subclasses should invoke enableAllInputRefs() at the end of their construction to start the
DataReferences-listening thread.
name - The name for the instance.inRefs - The input DataReferences.initValue - The initial value of the output data.
RemoteVisADException - if initValue is a
RemoteData.
NullPointerException - if any argument is null or if
an input data reference is
null.
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.| Method Detail |
|---|
public final DataReference[] getInputRefs()
public final DataReference getOutputRef()
public final void enableAllInputRefs()
throws VisADException,
RemoteException
NullPointerException - if an input data reference is
null.
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
public final boolean disableRef(DataReference ref)
throws VisADException,
RemoteException
ref - The input data reference to disable.
NullPointerException - if the argument is null.
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
protected abstract Data compute(Data[] datums)
throws TypeException,
VisADException,
RemoteException
ActionImpl. It is the subclass's
responsibility of to set the output data references.
datums - The input data in the same order as during
construction (i.e. datums[i]
corresponds to inRefs[i].
ClassCastException - if an input data reference has the wrong
type of VisAD data object (e.g. a Real instead of a
Field).
TypeException - if the internal details of a VisAD data
object are wrong (e.g. incompatible unit).
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
public final void clean()
throws VisADException,
RemoteException
ActionImpl and the action is stopped.
This instance may be reused after invoking this method,
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.public final String toString()
toString in class Object
protected static FlatField noDataField(RealType rangeType)
throws VisADException,
RemoteException
rangeType - The type of parameter.
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||