org.omegahat.Simulation.MCMC
Class NotifyingMCMCObject

java.lang.Object
  |
  +--org.omegahat.Simulation.MCMC.NotifyingMCMCObject
All Implemented Interfaces:
NotifyingObject
Direct Known Subclasses:
BaseMarkovChain

public abstract class NotifyingMCMCObject
extends java.lang.Object
implements NotifyingObject

A simple class providing methods implementing the interface NotifyingObject


Inner Class Summary
 class NotifyingMCMCObject.MyHandle
           
 
Field Summary
protected  java.util.Hashtable listeners
           
 
Constructor Summary
NotifyingMCMCObject()
           
 
Method Summary
protected abstract  MCMCState generate(MCMCState current)
          Generate the next state from the current one
protected  void notifyAll(MCMCEvent e)
           
 MCMCListenerHandle registerListener(MCMCListener listener)
          Register a listener to be notified of events.
 void unregisterListener(MCMCListenerHandle handle)
          Unregister a listener to be notified of events.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

listeners

protected java.util.Hashtable listeners
Constructor Detail

NotifyingMCMCObject

public NotifyingMCMCObject()
Method Detail

registerListener

public MCMCListenerHandle registerListener(MCMCListener listener)
Description copied from interface: NotifyingObject
Register a listener to be notified of events.
Specified by:
registerListener in interface NotifyingObject

unregisterListener

public void unregisterListener(MCMCListenerHandle handle)
Description copied from interface: NotifyingObject
Unregister a listener to be notified of events.
Specified by:
unregisterListener in interface NotifyingObject

notifyAll

protected void notifyAll(MCMCEvent e)

generate

protected abstract MCMCState generate(MCMCState current)
Generate the next state from the current one