|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.ThingReferenceImpl visad.DataReferenceImpl
public class DataReferenceImpl
DataReferenceImpl is a local implementation of DataReference.
DataReferenceImpl is not Serializable and should not be copied between JVMs.
Constructor Summary | |
---|---|
DataReferenceImpl(String name)
Constructs from a name for the instance. |
Method Summary | |
---|---|
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()
|
Methods inherited from class visad.ThingReferenceImpl |
---|
acknowledgeThingChanged, adaptedAcknowledgeThingChanged, adaptedPeekThingChanged, addThingChangedListener, findThingChangedLink, getName, getThing, getTick, incTick, peekThingChanged, removeThingChangedListener, setThing |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface visad.ThingReference |
---|
acknowledgeThingChanged, addThingChangedListener, getName, getThing, getTick, incTick, peekThingChanged, removeThingChangedListener, setThing |
Constructor Detail |
---|
public DataReferenceImpl(String name) throws VisADException
name
- The name for this instance.
VisADException
- if the name is null
.Method Detail |
---|
public Data getData()
getData
in interface DataReference
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic MathType getType() throws VisADException, RemoteException
getType
in interface DataReference
VisADException
- a VisAD error occurred
RemoteException
- 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 occurred
RemoteException
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |