All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface watch.Watchable

public interface interface Watchable
A Watchable object is one that registers some of its variables with a WatchManager, and then periodically allows the WatchManager to activate the various Watcher objects so they can get copies of the variables in the Watchable object, perhaps to record or display them. The WatchManager should be in the same thread as the Watchable object, but each Watcher may have a separate thread.

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

Method Index

 o getName()
Return the variable "name" that was passed into setWatchManager
 o getWatchManager()
Return the WatchManager set by setWatchManager().
 o setWatchManager(WatchManager, String)
Register all variables with this WatchManager.

Methods

 o setWatchManager
 public abstract void setWatchManager(WatchManager wm,
                                      String name)
Register all variables with this WatchManager. This method should register all the variables in this object and in those it links to. The name of each variable should be appended to the end of the String name.

 o getWatchManager
 public abstract WatchManager getWatchManager()
Return the WatchManager set by setWatchManager().

 o getName
 public abstract String getName()
Return the variable "name" that was passed into setWatchManager


All Packages  Class Hierarchy  This Package  Previous  Next  Index