|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.ThingReferenceImpl
ThingReferenceImpl is a local implementation of ThingReference.
ThingReferenceImpl is not Serializable and should not be copied between JVMs.
| Field Summary | |
(package private) Vector |
ListenerVector
Vector of ThingChangedLinks; ThingReferenceImpl is not Serializable, but mark as transient anyway |
(package private) String |
Name
name of scalar type |
| Constructor Summary | |
ThingReferenceImpl(String name)
Constructs from a name for the instance. |
|
| Method Summary | |
ThingChangedEvent |
acknowledgeThingChanged(Action a)
|
ThingChangedEvent |
adaptedAcknowledgeThingChanged(RemoteAction a)
|
(package private) void |
adaptedAddThingChangedListener(RemoteAction a,
long id)
method for use by RemoteThingReferenceImpl that adapts this ThingReferenceImpl |
ThingChangedEvent |
adaptedPeekThingChanged(RemoteAction a)
|
(package private) void |
adaptedRemoveThingChangedListener(RemoteAction a)
method for use by RemoteThingReferenceImpl that adapts this ThingReferenceImpl |
(package private) void |
adaptedSetThing(RemoteThing t,
RemoteThingReference r)
method for use by RemoteThingReferenceImpl that adapts this ThingReferenceImpl |
void |
addThingChangedListener(ThingChangedListener listener,
long id)
Adds a listener for changes in the underlying Thing. |
boolean |
equals(Object obj)
|
ThingChangedLink |
findThingChangedLink(Action a)
find ThingChangedLink with action |
String |
getName()
|
Thing |
getThing()
|
long |
getTick()
|
long |
incTick()
synchronized because incTick, setThing, and adaptedSetThing share access to thing and ref |
ThingChangedEvent |
peekThingChanged(Action a)
|
void |
removeThingChangedListener(ThingChangedListener a)
ThingChangedListener must be local ActionImpl |
void |
setThing(Thing t)
Sets the underlying thing to reference. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
String Name
transient Vector ListenerVector
| Constructor Detail |
public ThingReferenceImpl(String name)
throws VisADException
name - The name for this instance.
VisADException - if the name is null.| Method Detail |
public Thing getThing()
getThing in interface ThingReference
public void setThing(Thing t)
throws VisADException,
RemoteException
setThing in interface ThingReferencet - The thing to reference.
RemoteVisADException - if the thing is a RemoteThing.
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
void adaptedSetThing(RemoteThing t,
RemoteThingReference r)
throws VisADException,
RemoteException
VisADException
RemoteExceptionpublic long getTick()
getTick in interface ThingReference
public long incTick()
throws VisADException,
RemoteException
incTick in interface ThingReferenceVisADException
RemoteException
public ThingChangedEvent peekThingChanged(Action a)
throws VisADException
peekThingChanged in interface ThingReferenceVisADException
public ThingChangedEvent acknowledgeThingChanged(Action a)
throws VisADException
acknowledgeThingChanged in interface ThingReferenceVisADException
public ThingChangedEvent adaptedPeekThingChanged(RemoteAction a)
throws VisADException
VisADException
public ThingChangedEvent adaptedAcknowledgeThingChanged(RemoteAction a)
throws VisADException
VisADException
public ThingChangedLink findThingChangedLink(Action a)
throws VisADException
VisADExceptionpublic String getName()
getName in interface ThingReference
public void addThingChangedListener(ThingChangedListener listener,
long id)
throws RemoteVisADException,
ReferenceException,
VisADException
Thing. If the
thing changes, then the listener is notified.
addThingChangedListener in interface ThingReferencelistener - The listener.id - The id of the corresponding ReferenceActionLink.
RemoteVisADException - if the listener isn't an ActionImpl.
ReferenceException - if the listener is already registered.
VisADException - if a VisAD failure occurs in a subsystem.
void adaptedAddThingChangedListener(RemoteAction a,
long id)
throws VisADException
VisADException
public void removeThingChangedListener(ThingChangedListener a)
throws VisADException
removeThingChangedListener in interface ThingReferenceVisADException
void adaptedRemoveThingChangedListener(RemoteAction a)
throws VisADException
VisADExceptionpublic boolean equals(Object obj)
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||