|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.ThingReferenceImpl
public class ThingReferenceImpl
ThingReferenceImpl is a local implementation of ThingReference.
ThingReferenceImpl is not Serializable and should not be copied between JVMs.
Constructor Summary | |
---|---|
ThingReferenceImpl(String name)
Constructs from a name for the instance. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 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
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |