visad
Class CellImpl

java.lang.Object
  extended by visad.ActionImpl
      extended by visad.CellImpl
All Implemented Interfaces:
java.lang.Runnable, java.util.EventListener, Action, Cell, ThingChangedListener
Direct Known Subclasses:
SSCellImpl

public abstract class CellImpl
extends ActionImpl
implements Cell

CellImpl is the abstract superclass for computations. It has a set of input DataReferences and an output DataReference, which updates whenever an input changes. Cell is runnable.

CellImpl is not Serializable and should not be copied between JVMs.


Constructor Summary
CellImpl()
           
CellImpl(java.lang.String name)
          the name String can be useful for debugging
 
Method Summary
abstract  void doAction()
          subclasses of CellImpl implement doAction to compute a new Data value for outputReference as a function of the Data objects referenced by the DataReferences in LinkVector
 DataReference getOtherReference(int index)
          get link to an output DataReference
 void setOtherReference(int index, DataReference ref)
          create link to an output DataReference
 
Methods inherited from class visad.ActionImpl
addReference, checkTicks, disableAction, enableAction, findReference, getCurrentActionThread, getLinks, getName, removeAllReferences, removeReference, run, setEnabled, setName, setThreadPoolMaximum, stop, stopThreadPool, thingChanged, waitForTasks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface visad.Action
addReference, getName, removeAllReferences, removeReference
 
Methods inherited from interface visad.ThingChangedListener
thingChanged
 

Constructor Detail

CellImpl

public CellImpl()

CellImpl

public CellImpl(java.lang.String name)
the name String can be useful for debugging

Method Detail

doAction

public abstract void doAction()
                       throws VisADException,
                              java.rmi.RemoteException
subclasses of CellImpl implement doAction to compute a new Data value for outputReference as a function of the Data objects referenced by the DataReferences in LinkVector

Specified by:
doAction in class ActionImpl
Throws:
VisADException
java.rmi.RemoteException

setOtherReference

public void setOtherReference(int index,
                              DataReference ref)
                       throws VisADException,
                              java.rmi.RemoteException
create link to an output DataReference

Specified by:
setOtherReference in interface Cell
Throws:
VisADException
java.rmi.RemoteException

getOtherReference

public DataReference getOtherReference(int index)
                                throws VisADException,
                                       java.rmi.RemoteException
get link to an output DataReference

Specified by:
getOtherReference in interface Cell
Throws:
VisADException
java.rmi.RemoteException