public class ThingImpl extends Object implements Thing, Cloneable, Serializable
Constructor and Description |
---|
ThingImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addReference(ThingReference r)
Adds a listener for changes to this thing.
|
Object |
clone()
Clones this instance.
|
void |
notifyReferences()
notify local ThingReferenceImpl-s that this ThingImpl has changed;
incTick in RemoteThingImpl for RemoteThingReferenceImpl-s;
would like 'default' visibility here, but must be declared
'public' because it is defined in the Thing interface
|
void |
removeReference(ThingReference r)
remove a ThingReference to this ThingImpl;
must be local ThingReferenceImpl;
called by ThingReference.setThing;
would like 'default' visibility here, but must be declared
'public' because it is defined in the Thing interface
|
public void addReference(ThingReference r) throws RemoteVisADException
addReference
in interface Thing
r
- The listener for changes.RemoteVisADException
- if the listener isn't a ThingReferenceImpl
.VisADException
- if a VisAD failure occurs.public void removeReference(ThingReference r) throws VisADException
removeReference
in interface Thing
VisADException
public void notifyReferences() throws VisADException, RemoteException
VisADException
RemoteException
public Object clone() throws CloneNotSupportedException
Clones this instance. Information on the set of listeners to changes in
this instance is not cloned, so -- following the general contract of the
clone()
method -- subclasses should not test for equality of
the set of listeners in any equals(Object)
method.
This implementation never throws CloneNotSupportedException
.
clone
in class Object
CloneNotSupportedException
- if cloning isn't supported.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.