All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface JavaGroups.Subject

public interface Subject
Class whose state is observed by Observers. An observer can attach itself to be notified when the state of the subject is modified, and it can also detach itself. The subject keeps a list of observers: whenever the state is modified in a subject, Notify should be called. This will in turn call Update in all observers. The observers may then access the subject to retrieve the state.


Method Index

 o Attach(Observer)
 o Detach(Observer)
 o Notify()

Methods

 o Attach
 public abstract void Attach(Observer o)
 o Detach
 public abstract void Detach(Observer o)
 o Notify
 public abstract void Notify()

All Packages  Class Hierarchy  This Package  Previous  Next  Index