|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataReference
DataReference is the VisAD interface for named holders for data objects. It can provide a symbol table binding between a name and a variable for a user interface that includes a formula interpreter, or a full language interpreter (e.g., a Java interpreter).
During computations the Data object referenced by a DataReference may change. DataReference objects are passed to Display objects, so that a display may depict the changing values of named variables.
DataReference is a source of ThingChangedEvent-s, and thus defines addThingChangedListener and removeThingChangedListener.
DataReference objects may be local (DataReferenceImpl) or remote (RemoteDataReferenceImpl).
Method Summary | |
---|---|
Data |
getData()
get referenced Data object, or null if none |
MathType |
getType()
get MathType of referenced Data object, or null if none; this is more efficient than getData().getType() for RemoteDataReferences |
void |
setData(Data d)
set reference to data, replacing any currently referenced Data object; if this is local (i.e., an instance of DataReferenceImpl) then the data argument must also be local (i.e., an instance of DataImpl); if this is Remote (i.e., an instance of RemoteDataReference) then a local data argument (i.e., an instance of DataImpl) will be passed by copy and a remote data argument (i.e., an instance of RemoteData) will be passed by remote reference; invokes d.addReference(DataReference r) |
Methods inherited from interface visad.ThingReference |
---|
acknowledgeThingChanged, addThingChangedListener, getName, getThing, getTick, incTick, peekThingChanged, removeThingChangedListener, setThing |
Method Detail |
---|
void setData(Data d) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
Data getData() throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
MathType getType() throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |