org.blackbox.shell
Class ObserverPatternImpl

java.lang.Object
  extended by org.blackbox.shell.ObserverPatternImpl
All Implemented Interfaces:
ObservableEntity
Direct Known Subclasses:
BBX_Agenda, BBX_Blackboard, BBX_KSFarm, BlackHole, List, TimeLine

public class ObserverPatternImpl
extends java.lang.Object
implements ObservableEntity

Implementation of the Observale pattern for a container.

Author:
Stˇphane Descorps-Declere

Field Summary
protected  Event curEvent
           
 
Constructor Summary
ObserverPatternImpl()
           
 
Method Summary
 void addObserver(ModelObserver o)
          Add a new observer.
protected  void notifyObservers()
           
 void removeObserver(ModelObserver o)
          Remove an observer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

curEvent

protected Event curEvent
Constructor Detail

ObserverPatternImpl

public ObserverPatternImpl()
Method Detail

addObserver

public void addObserver(ModelObserver o)
Description copied from interface: ObservableEntity
Add a new observer.

Specified by:
addObserver in interface ObservableEntity
Parameters:
o - the observer to be added.

removeObserver

public void removeObserver(ModelObserver o)
Description copied from interface: ObservableEntity
Remove an observer.

Specified by:
removeObserver in interface ObservableEntity
Parameters:
o - the observer to be removed.

notifyObservers

protected void notifyObservers()