visad
Interface ThingReference

All Known Subinterfaces:
DataReference, RemoteDataReference, RemoteThingReference
All Known Implementing Classes:
DataReferenceImpl, RemoteDataReferenceImpl, RemoteThingReferenceImpl, ThingReferenceImpl

public interface ThingReference

ThingReference is the VisAD interface for named holders for objects. It can provide a symbol table binding between a name and a variable for a user interface that includes a formula interpreter, or a full language interpreter (e.g., a Java interpreter).

During computations the object referenced by a ThingReference may change.

ThingReference is a source of ThingChangedEvent-s, and thus defines addThingChangedListener and removeThingChangedListener.

ThingReference objects may be local (ThingReferenceImpl) or remote (RemoteThingReferenceImpl).


Method Summary
 ThingChangedEvent acknowledgeThingChanged(Action a)
           
 void addThingChangedListener(ThingChangedListener l, long id)
           
 String getName()
           
 Thing getThing()
           
 long getTick()
           
 long incTick()
           
 ThingChangedEvent peekThingChanged(Action a)
           
 void removeThingChangedListener(ThingChangedListener l)
           
 void setThing(Thing t)
          invokes t.addReference((ThingReference r)
 

Method Detail

setThing

void setThing(Thing t)
              throws VisADException,
                     RemoteException
invokes t.addReference((ThingReference r)

Throws:
VisADException
RemoteException

getThing

Thing getThing()
               throws VisADException,
                      RemoteException
Throws:
VisADException
RemoteException

getTick

long getTick()
             throws VisADException,
                    RemoteException
Throws:
VisADException
RemoteException

incTick

long incTick()
             throws VisADException,
                    RemoteException
Throws:
VisADException
RemoteException

getName

String getName()
               throws VisADException,
                      RemoteException
Throws:
VisADException
RemoteException

addThingChangedListener

void addThingChangedListener(ThingChangedListener l,
                             long id)
                             throws VisADException,
                                    RemoteException
Throws:
VisADException
RemoteException

removeThingChangedListener

void removeThingChangedListener(ThingChangedListener l)
                                throws VisADException,
                                       RemoteException
Throws:
VisADException
RemoteException

acknowledgeThingChanged

ThingChangedEvent acknowledgeThingChanged(Action a)
                                          throws VisADException,
                                                 RemoteException
Throws:
VisADException
RemoteException

peekThingChanged

ThingChangedEvent peekThingChanged(Action a)
                                   throws VisADException,
                                          RemoteException
Throws:
VisADException
RemoteException