uk.co.agena.minerva.model
Class ModelAdapter

java.lang.Object
  extended by uk.co.agena.minerva.model.ModelAdapter
All Implemented Interfaces:
java.util.EventListener, ModelListener

public class ModelAdapter
extends java.lang.Object
implements ModelListener

Defines an adapter for Models. Any object interested in events can instantiate a subclass of this adapter rather than implementing ModelListener. Only those methods that are needed by the subclass then need to be implemented.


Constructor Summary
ModelAdapter()
           
 
Method Summary
 void modelChanged(ModelEvent ebne)
          Called whenever a Model changes.
 void modelInconsistentEvidencePropagated(ModelEvent ebne)
          Called whenever inconsistent evidence is propagated in one of the ExtendedBNs in a Model.
 void modelPropagationFinished(ModelEvent me, boolean completionSuccessful)
          Called whenever the propagation has finished.
 void modelPropagationStarting(ModelEvent me)
          Called whenever the propagation is about to start.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelAdapter

public ModelAdapter()
Method Detail

modelInconsistentEvidencePropagated

public void modelInconsistentEvidencePropagated(ModelEvent ebne)
Description copied from interface: ModelListener
Called whenever inconsistent evidence is propagated in one of the ExtendedBNs in a Model.

Specified by:
modelInconsistentEvidencePropagated in interface ModelListener
Parameters:
ebne - the event encapsulating the inconsistent evidence propagation

modelChanged

public void modelChanged(ModelEvent ebne)
Description copied from interface: ModelListener
Called whenever a Model changes.

Specified by:
modelChanged in interface ModelListener
Parameters:
ebne - the event encapsulating the change

modelPropagationStarting

public void modelPropagationStarting(ModelEvent me)
Description copied from interface: ModelListener
Called whenever the propagation is about to start.

Specified by:
modelPropagationStarting in interface ModelListener

modelPropagationFinished

public void modelPropagationFinished(ModelEvent me,
                                     boolean completionSuccessful)
Description copied from interface: ModelListener
Called whenever the propagation has finished.

Specified by:
modelPropagationFinished in interface ModelListener
completionSuccessful - TODO


Copyright © 2006 Agena Ltd. All Rights Reserved.