ami
Class AMISubjectAdapter

java.lang.Object
  |
  +--ami.AMISubjectAdapter
All Implemented Interfaces:
AMISubject

public class AMISubjectAdapter
extends Object
implements AMISubject

A basic implementation of the Subject in Observer pattern ( see GOF )

Version:
1.0
Author:
Bertrand Florat

Field Summary
private  Vector vObservers
           
 
Constructor Summary
AMISubjectAdapter()
          Constructor for AMISubjectAdapter.
 
Method Summary
 void attach(AMIObserver aob)
          Add a new subject observer
 void detach(AMIObserver aob)
          Remove a subject observer
 void notifyEvent()
          Notify the observer about an event
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

vObservers

private Vector vObservers
Constructor Detail

AMISubjectAdapter

public AMISubjectAdapter()
Constructor for AMISubjectAdapter.
Method Detail

attach

public void attach(AMIObserver aob)
Add a new subject observer
Specified by:
attach in interface AMISubject

detach

public void detach(AMIObserver aob)
Remove a subject observer
Specified by:
detach in interface AMISubject

notifyEvent

public void notifyEvent()
Notify the observer about an event
Specified by:
notifyEvent in interface AMISubject