public class ThingReferenceImpl extends Object implements ThingReference
ThingReferenceImpl is not Serializable and should not be copied between JVMs.
| Constructor and Description |
|---|
ThingReferenceImpl(String name)
Constructs from a name for the instance.
|
| Modifier and Type | Method and Description |
|---|---|
ThingChangedEvent |
acknowledgeThingChanged(Action a) |
ThingChangedEvent |
adaptedAcknowledgeThingChanged(RemoteAction a) |
ThingChangedEvent |
adaptedPeekThingChanged(RemoteAction a) |
void |
addThingChangedListener(ThingChangedListener listener,
long id)
Adds a listener for changes in the underlying
Thing. |
boolean |
equals(Object obj) |
visad.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() |
public ThingReferenceImpl(String name) throws VisADException
name - The name for this instance.VisADException - if the name is null.public Thing getThing()
getThing in interface ThingReferencepublic 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.public long getTick()
getTick in interface ThingReferencepublic long incTick()
throws VisADException,
RemoteException
incTick in interface ThingReferenceVisADExceptionRemoteExceptionpublic ThingChangedEvent peekThingChanged(Action a) throws VisADException
peekThingChanged in interface ThingReferenceVisADExceptionpublic ThingChangedEvent acknowledgeThingChanged(Action a) throws VisADException
acknowledgeThingChanged in interface ThingReferenceVisADExceptionpublic ThingChangedEvent adaptedPeekThingChanged(RemoteAction a) throws VisADException
VisADExceptionpublic ThingChangedEvent adaptedAcknowledgeThingChanged(RemoteAction a) throws VisADException
VisADExceptionpublic visad.ThingChangedLink findThingChangedLink(Action a) throws VisADException
VisADExceptionpublic String getName()
getName in interface ThingReferencepublic 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.public void removeThingChangedListener(ThingChangedListener a) throws VisADException
removeThingChangedListener in interface ThingReferenceVisADExceptionCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.