com.cra.bnet.engine
Class EvidenceAdapter

java.lang.Object
  |
  +--com.cra.bnet.engine.EvidenceAdapter
All Implemented Interfaces:
EventListener, EvidenceListener

public abstract class EvidenceAdapter
extends Object
implements EvidenceListener

An abstract adapter class for receiving evidence events. Subclasses can override whichever EvidenceListener methods they wish and ignore the rest.


Constructor Summary
EvidenceAdapter()
           
 
Method Summary
 void allEvidenceRetracted(EvidenceEvent event)
          Invoked when all evidence was retracted from a Bayesian network.
 void evidencePosted(EvidenceEvent event)
          Invoked when evidence was posted to a node in a Bayesian network.
 void evidenceRetracted(EvidenceEvent event)
          Invoked when evidence was retracted from a node in a Bayesian network.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvidenceAdapter

public EvidenceAdapter()
Method Detail

allEvidenceRetracted

public void allEvidenceRetracted(EvidenceEvent event)
Description copied from interface: EvidenceListener
Invoked when all evidence was retracted from a Bayesian network.

Specified by:
allEvidenceRetracted in interface EvidenceListener
Parameters:
event - evidence event.

evidencePosted

public void evidencePosted(EvidenceEvent event)
Description copied from interface: EvidenceListener
Invoked when evidence was posted to a node in a Bayesian network.

Specified by:
evidencePosted in interface EvidenceListener
Parameters:
event - evidence event.

evidenceRetracted

public void evidenceRetracted(EvidenceEvent event)
Description copied from interface: EvidenceListener
Invoked when evidence was retracted from a node in a Bayesian network.

Specified by:
evidenceRetracted in interface EvidenceListener
Parameters:
event - evidence event.