visad
Class RemoteActionImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by visad.RemoteActionImpl
All Implemented Interfaces:
Serializable, Remote, EventListener, Action, RemoteAction, ThingChangedListener
Direct Known Subclasses:
RemoteCellImpl, RemoteDisplayImpl

public abstract class RemoteActionImpl
extends UnicastRemoteObject
implements RemoteAction

RemoteActionImpl is the VisAD remote adapter for ActionImpl.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Method Summary
 void addReference(ThingReference ref)
          create link to ThingReference; must be RemoteThingReference
 String getName()
          return name of this Action
 void removeAllReferences()
          delete all links to ThingReferences
 void removeReference(ThingReference ref)
          delete link to a ThingReference must be RemoteThingReference
 boolean thingChanged(ThingChangedEvent e)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

thingChanged

public boolean thingChanged(ThingChangedEvent e)
                     throws VisADException,
                            RemoteException
Specified by:
thingChanged in interface ThingChangedListener
Throws:
VisADException
RemoteException

addReference

public void addReference(ThingReference ref)
                  throws VisADException,
                         RemoteException
create link to ThingReference; must be RemoteThingReference

Specified by:
addReference in interface Action
Parameters:
ref - The ThingReference to which to create the link. Subsequent invocation of thingChanged(ThingChangedEvent) causes invocation of ref.acknowledgeThingChanged(this) . This method invokes ref.addThingChangedListener(this, ...).
Throws:
RemoteVisADException - if the reference isn't a ThingReferenceImpl.
ReferenceException - if the reference has already been added.
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
See Also:
ThingChangedListener.thingChanged(ThingChangedEvent), ThingReference.addThingChangedListener(ThingChangedListener, long)

removeReference

public void removeReference(ThingReference ref)
                     throws VisADException,
                            RemoteException
delete link to a ThingReference must be RemoteThingReference

Specified by:
removeReference in interface Action
Parameters:
ref - The reference to be removed.
Throws:
RemoteVisADException - if the reference isn't a ThingReferenceImpl.
ReferenceException - if the reference isn't a part of this instance.
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.

removeAllReferences

public void removeAllReferences()
                         throws VisADException,
                                RemoteException
delete all links to ThingReferences

Specified by:
removeAllReferences in interface Action
Throws:
VisADException
RemoteException

getName

public String getName()
               throws VisADException
return name of this Action

Specified by:
getName in interface Action
Returns:
String name of this Action
Throws:
VisADException