All Packages Class Hierarchy This Package Previous Next Index
Interface watch.Watcher
- public interface interface Watcher
A Watcher can get the names of watchable variables from a
WatchManager, and call registerWatch to ask to be notified when
a variable changes (or changes every nth time). The WatchManager
will call update() when that happens, so the Watcher can display
or record the appropriate variables.
This code is (c) 1996 Leemon Baird
<leemon@cs.cmu.edu>,
http://www.cs.cmu.edu/~baird
The source and object code may be redistributed freely.
If the code is modified, please state so in the comments.
- Version:
- 1.0, 3 June 96
- Author:
- Leemon Baird
-
unregister(String)
- One of the watched variables has been unregistered.
-
update(String, Pointer, Watchable)
- One of the watched variables has changed, so look at it and others.
update
public abstract void update(String changedName,
Pointer changedVar,
Watchable obj)
- One of the watched variables has changed, so look at it and others.
This is called by the WatchManager.
unregister
public abstract void unregister(String watchedVar)
- One of the watched variables has been unregistered.
The watcher doesn't have to do anything, but might
remove this variable from some internal data structure.
This is called by the WatchManager.
All Packages Class Hierarchy This Package Previous Next Index