|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisad.ActionImpl
visad.CellImpl
public abstract class CellImpl
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()
construct a CellImpl with null name |
|
CellImpl(String name)
construct a CellImpl |
Method Summary | |
---|---|
abstract void |
doAction()
subclasses of CellImpl implement doAction to execute triggered computation |
DataReference |
getOtherReference(int index)
|
void |
setOtherReference(int index,
DataReference ref)
set a non-triggering link to a DataReference; this is used to give the Cell access to Data without triggering the Cell's doAction whenever the Data changes; these 'other' DataReferences are identified by their integer index |
Methods inherited from class visad.ActionImpl |
---|
addReference, checkTicks, disableAction, enableAction, findReference, getCurrentActionThread, getLinks, getName, getTaskCount, 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 |
---|
public CellImpl()
public CellImpl(String name)
name
- - String useful for debuggingMethod Detail |
---|
public abstract void doAction() throws VisADException, RemoteException
doAction
in class ActionImpl
VisADException
- - a VisAD error occurred
RemoteException
- - an RMI error occurredpublic void setOtherReference(int index, DataReference ref) throws VisADException, RemoteException
setOtherReference
in interface Cell
index
- - identifier of DataReferenceref
- - DataReference to be linked
VisADException
- - a VisAD error occurred
RemoteException
- - an RMI error occurredpublic DataReference getOtherReference(int index) throws VisADException, RemoteException
getOtherReference
in interface Cell
index
- - identifier of DataReference to return
VisADException
- - a VisAD error occurred
RemoteException
- - an RMI error occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |