at.ac.tuwien.infosys.sm4all.copal.api.util
Class ConcreteObservable<E extends java.lang.Enum<?>,T,O extends Observer<E,T>>

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.util.BaseObservable<E,T,O>
      extended by at.ac.tuwien.infosys.sm4all.copal.api.util.ConcreteObservable<E,T,O>
Type Parameters:
E - the type of change represented as an Enum.
T - the type of changed object.
O - the type of Observer that can attach and detach to this BaseObservable.
All Implemented Interfaces:
Observable<E,T,O>

public class ConcreteObservable<E extends java.lang.Enum<?>,T,O extends Observer<E,T>>
extends BaseObservable<E,T,O>

The class which holds Observers that can be notified.

Author:
sanjin

Constructor Summary
ConcreteObservable()
           
 
Method Summary
 void notifyAll(E change, T object)
          Notifies all attached Observers that specified change happened on specified object.
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.util.BaseObservable
attach, detach, detachAll, getObservers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcreteObservable

public ConcreteObservable()
Method Detail

notifyAll

public void notifyAll(E change,
                      T object)
Description copied from class: BaseObservable
Notifies all attached Observers that specified change happened on specified object.

Overrides:
notifyAll in class BaseObservable<E extends java.lang.Enum<?>,T,O extends Observer<E,T>>
Parameters:
change - the change.
object - the changed object.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.