visad
Class DataReferenceImpl
- java.lang.Object
-
- visad.ThingReferenceImpl
-
- visad.DataReferenceImpl
-
- All Implemented Interfaces:
- DataReference, ThingReference
public class DataReferenceImpl extends ThingReferenceImpl implements DataReference
DataReferenceImpl is a local implementation of DataReference.DataReferenceImpl is not Serializable and should not be copied between JVMs.
-
-
Constructor Summary
Constructors Constructor and Description DataReferenceImpl(java.lang.String name)Constructs from a name for the instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)Indicates whether or not this instance is equal to an objectDatagetData()MathTypegetType()this is more efficient than getData().getType() for RemoteDataReferencesvoidsetData(Data d)Sets the Data object to which this instance refers.java.lang.StringtoString()-
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
getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface visad.ThingReference
acknowledgeThingChanged, addThingChangedListener, getName, getThing, getTick, incTick, peekThingChanged, removeThingChangedListener, setThing
-
-
-
-
Constructor Detail
-
DataReferenceImpl
public DataReferenceImpl(java.lang.String name) throws VisADExceptionConstructs from a name for the instance.- Parameters:
name- The name for this instance.- Throws:
VisADException- if the name isnull.
-
-
Method Detail
-
getData
public Data getData()
- Specified by:
getDatain interfaceDataReference- Returns:
- referenced Data object, or null if none
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
getType
public MathType getType() throws VisADException, java.rmi.RemoteException
this is more efficient than getData().getType() for RemoteDataReferences- Specified by:
getTypein interfaceDataReference- Returns:
- the MathType of referenced Data object, or null if none;
- Throws:
VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
setData
public void setData(Data d) throws VisADException, java.rmi.RemoteException
Sets the Data object to which this instance refers.- Specified by:
setDatain interfaceDataReference- Parameters:
d- The data object.- Throws:
ReferenceException- if the data object isnull.RemoteVisADException- if the data object is aRemoteData.VisADException- a VisAD error occurredjava.rmi.RemoteException- an RMI error occurred
-
equals
public boolean equals(java.lang.Object obj)
Indicates whether or not this instance is equal to an object- Overrides:
equalsin classThingReferenceImpl- Parameters:
obj- the object in question.- Returns:
trueif and only if this instance equals o.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classThingReferenceImpl- Returns:
- String representation of this
-
-
DMelt 3.0 © DataMelt by jWork.ORG