public class DataReferenceImpl extends ThingReferenceImpl implements DataReference
DataReferenceImpl is not Serializable and should not be copied between JVMs.
Constructor and Description |
---|
DataReferenceImpl(String name)
Constructs from a name for the instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether or not this instance is equal to an object
|
Data |
getData() |
MathType |
getType()
this is more efficient than getData().getType() for
RemoteDataReferences
|
void |
setData(Data d)
Sets the Data object to which this instance refers.
|
String |
toString() |
acknowledgeThingChanged, adaptedAcknowledgeThingChanged, adaptedPeekThingChanged, addThingChangedListener, findThingChangedLink, getName, getThing, getTick, incTick, peekThingChanged, removeThingChangedListener, setThing
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
acknowledgeThingChanged, addThingChangedListener, getName, getThing, getTick, incTick, peekThingChanged, removeThingChangedListener, setThing
public DataReferenceImpl(String name) throws VisADException
name
- The name for this instance.VisADException
- if the name is null
.public Data getData()
getData
in interface DataReference
VisADException
- a VisAD error occurredRemoteException
- an RMI error occurredpublic MathType getType() throws VisADException, RemoteException
getType
in interface DataReference
VisADException
- a VisAD error occurredRemoteException
- an RMI error occurredpublic void setData(Data d) throws VisADException, RemoteException
setData
in interface DataReference
d
- The data object.ReferenceException
- if the data object is null
.RemoteVisADException
- if the data object is a RemoteData
.VisADException
- a VisAD error occurredRemoteException
- an RMI error occurredpublic boolean equals(Object obj)
equals
in class ThingReferenceImpl
obj
- the object in question.true
if and only if this instance equals o.public String toString()
toString
in class ThingReferenceImpl
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.