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 ThingReference
public void setThing(Thing t) throws VisADException, RemoteException
setThing
in interface ThingReference
t
- 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 ThingReference
public long incTick() throws VisADException, RemoteException
incTick
in interface ThingReference
VisADException
RemoteException
public ThingChangedEvent peekThingChanged(Action a) throws VisADException
peekThingChanged
in interface ThingReference
VisADException
public ThingChangedEvent acknowledgeThingChanged(Action a) throws VisADException
acknowledgeThingChanged
in interface ThingReference
VisADException
public ThingChangedEvent adaptedPeekThingChanged(RemoteAction a) throws VisADException
VisADException
public ThingChangedEvent adaptedAcknowledgeThingChanged(RemoteAction a) throws VisADException
VisADException
public visad.ThingChangedLink findThingChangedLink(Action a) throws VisADException
VisADException
public 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 ThingReference
listener
- 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 ThingReference
VisADException
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.