gzz.impl
Class DummyObsTrigger

java.lang.Object
  |
  +--gzz.impl.DummyObsTrigger
All Implemented Interfaces:
ObsTrigger

public class DummyObsTrigger
extends java.lang.Object
implements ObsTrigger

A dummy ObsTrigger: never triggers anything.


Field Summary
 
Fields inherited from interface gzz.ObsTrigger
rcsid
 
Constructor Summary
DummyObsTrigger()
           
 
Method Summary
 void addObs(Obs o, java.lang.Object obj, java.lang.Object code)
          Add an observer.
 void callQueued()
          Call the changed observers.
 void chg(java.lang.Object obj, java.lang.Object code)
          Signal that the observers for the given pair should be triggered.
 void rmObs(Obs o)
          Remove all observations that the given observer is making.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyObsTrigger

public DummyObsTrigger()
Method Detail

addObs

public void addObs(Obs o,
                   java.lang.Object obj,
                   java.lang.Object code)
Description copied from interface: ObsTrigger
Add an observer.

Specified by:
addObs in interface ObsTrigger
Parameters:
o - The observer. If null, nothing is done; no error may be thrown. (Rationale: otherwise, we would have to check for nullity in all places that call addObs, because they can (almost) all be passed null observers.)

rmObs

public void rmObs(Obs o)
Description copied from interface: ObsTrigger
Remove all observations that the given observer is making.

Specified by:
rmObs in interface ObsTrigger

chg

public void chg(java.lang.Object obj,
                java.lang.Object code)
Description copied from interface: ObsTrigger
Signal that the observers for the given pair should be triggered. All observers that are triggered are then removed from further processing.

Specified by:
chg in interface ObsTrigger

callQueued

public void callQueued()
Description copied from interface: ObsTrigger
Call the changed observers.

Specified by:
callQueued in interface ObsTrigger