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
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
vObservers
private Vector vObservers
AMISubjectAdapter
public AMISubjectAdapter()
- Constructor for AMISubjectAdapter.
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