visad
Class RemoteDataReferenceImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
visad.RemoteThingReferenceImpl
visad.RemoteDataReferenceImpl
- All Implemented Interfaces:
- Serializable, Remote, DataReference, RemoteDataReference, RemoteThingReference, ThingReference
public class RemoteDataReferenceImpl
- extends RemoteThingReferenceImpl
- implements RemoteDataReference
RemoteDataReferenceImpl is VisAD remote adapter for DataReferenceImpl.
- See Also:
- Serialized Form
Method Summary |
Data |
getData()
return referenced Data object, but if Data is a FieldImpl
return a RemoteFieldImpl referencing Data to avoid copying
entire FieldImpl between JVMs |
MathType |
getType()
this is more efficient than getData().getType() for
RemoteDataReferences |
void |
setData(Data d)
set this RemoteDataReferenceImpl to refer to given Data |
RemoteDataReferenceImpl
public RemoteDataReferenceImpl(DataReferenceImpl ref)
throws RemoteException
- construct a RemoteDataReferenceImpl adapting the given
DataReferenceImpl
- Parameters:
ref
- adpted DataReferenceImpl
- Throws:
RemoteException
- an RMI error occurred
setData
public void setData(Data d)
throws VisADException,
RemoteException
- set this RemoteDataReferenceImpl to refer to given Data
- Specified by:
setData
in interface DataReference
- Parameters:
d
- Data to be set (must be RemoteDataImpl)
- Throws:
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurred
getData
public Data getData()
throws VisADException,
RemoteException
- return referenced Data object, but if Data is a FieldImpl
return a RemoteFieldImpl referencing Data to avoid copying
entire FieldImpl between JVMs
- Specified by:
getData
in interface DataReference
- Returns:
- referenced Data object, or null if none
- Throws:
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurred
getType
public MathType getType()
throws VisADException,
RemoteException
- this is more efficient than getData().getType() for
RemoteDataReferences
- Specified by:
getType
in interface DataReference
- Returns:
- the MathType of referenced Data object, or null if none;
- Throws:
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurred