public interface DataReference extends ThingReference
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).
Modifier and Type | Method and Description |
---|---|
Data |
getData() |
MathType |
getType()
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)
|
acknowledgeThingChanged, addThingChangedListener, getName, getThing, getTick, incTick, peekThingChanged, removeThingChangedListener, setThing
void setData(Data d) throws VisADException, RemoteException
d
- Data object to be setVisADException
- a VisAD error occurredRemoteException
- an RMI error occurredData getData() throws VisADException, RemoteException
VisADException
- a VisAD error occurredRemoteException
- an RMI error occurredMathType getType() throws VisADException, RemoteException
VisADException
- a VisAD error occurredRemoteException
- an RMI error occurredCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.