uk.co.agena.minerva.model.extendedbn
Interface ExtendedBNListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
MarginalDataItemList, Model

public interface ExtendedBNListener
extends java.util.EventListener

Defines a listener for ExtendedBNEvents. Any object interested in such events should implement this interface.


Method Summary
 void extendedBNAboutToBePropagated(ExtendedBNEvent ebne)
          Invoked whenever an ExtendedBN has received a request to propagate itself
 void extendedBNAllEvidenceRetracted(ExtendedBNEvent ebne)
          Invoked whenever all evidence has been removed from an ExtendedBN.
 void extendedBNConnBNNotFound(ExtendedBNEvent ene)
          Invoked whenever an ExtendedBN's connected CoreBN is needed but is not initialised.
 void extendedBNIDChanged(ExtendedBNEvent ebne)
          Invoked whenever the ID for the ExtendedBN is changed.
 void extendedBNInconsistentEvidencePropagated(ExtendedBNEvent ebne)
          Invoked whenever inconsistent evidence is propagated.
 void extendedBNNameDescriptionChanged(ExtendedBNEvent ebne)
          Invoked whenever the name of an ExtendedBN has changed.
 void extendedBNPropagated(ExtendedBNEvent ebne)
          Invoked whenever an ExtendedBN has been propagated.
 void extendedNodeAboutToBeCut(ExtendedBNEvent ebne, ExtendedBN sourceEXBN, int targetEXNodeID, int sourceEXNodeID, java.lang.String nameCounter)
          This event is fired when an ExtendedNode has been pasted to the destination ExtendedBN and is about to be cut from the specified source ExtendedBN.
 void extendedNodeAdded(ExtendedBNEvent ebne, ExtendedNode exNode)
          This event is fired when ever a new node has been added to the extendedBN
 void extendedNodeEventFired(ExtendedBNEvent ebne, ExtendedNodeEvent ene, java.lang.String eventName)
          Invoked whenever the extended BN recieves a BN Node event, this event throws the event up to any listeners on the extended BN.
 void extendedNodePasted(ExtendedBNEvent ebne, ExtendedBN sourceEXBN, ExtendedNode sourceNode, ExtendedNode newExNode)
          This event is fired when an extended node is pasted into the extended BN
 void extendedNodeRemoved(ExtendedBNEvent ebne, ExtendedNode exNode)
          This event is fired when an extended node is removed from the extended BN
 void extendedNodeReplaced(ExtendedBNEvent ebne, ExtendedNode oldNode, ExtendedNode newNode, ExtendedBN ebn)
          This event is fired whenever a node is replaced with another one.
 

Method Detail

extendedBNNameDescriptionChanged

void extendedBNNameDescriptionChanged(ExtendedBNEvent ebne)
Invoked whenever the name of an ExtendedBN has changed.

Parameters:
ebne - the event encapsulating information about the change

extendedBNPropagated

void extendedBNPropagated(ExtendedBNEvent ebne)
Invoked whenever an ExtendedBN has been propagated.

Parameters:
ebne - the event encapsulating information about the change

extendedBNAboutToBePropagated

void extendedBNAboutToBePropagated(ExtendedBNEvent ebne)
Invoked whenever an ExtendedBN has received a request to propagate itself

Parameters:
ebne - the event encapsulating information about the change

extendedBNAllEvidenceRetracted

void extendedBNAllEvidenceRetracted(ExtendedBNEvent ebne)
Invoked whenever all evidence has been removed from an ExtendedBN.

Parameters:
ebne - the event encapsulating information about the change

extendedBNInconsistentEvidencePropagated

void extendedBNInconsistentEvidencePropagated(ExtendedBNEvent ebne)
Invoked whenever inconsistent evidence is propagated.

Parameters:
ebne - the event encapsulating information about the change

extendedBNConnBNNotFound

void extendedBNConnBNNotFound(ExtendedBNEvent ene)
                              throws ExtendedBNException
Invoked whenever an ExtendedBN's connected CoreBN is needed but is not initialised.

Parameters:
ene - the event encapsulating information about the change
Throws:
ExtendedBNException

extendedBNIDChanged

void extendedBNIDChanged(ExtendedBNEvent ebne)
Invoked whenever the ID for the ExtendedBN is changed.

Parameters:
ebne - the event encapsulating information about the change

extendedNodeEventFired

void extendedNodeEventFired(ExtendedBNEvent ebne,
                            ExtendedNodeEvent ene,
                            java.lang.String eventName)
Invoked whenever the extended BN recieves a BN Node event, this event throws the event up to any listeners on the extended BN. As well as the node event it provides a string which is the name of the event that BN node fired.

Parameters:
ebne - Tne Extended Bn that fired the event
ene - The extended Node that fired the event, caught by the BN
eventName - The name of the extendedBN node event.

extendedNodeAdded

void extendedNodeAdded(ExtendedBNEvent ebne,
                       ExtendedNode exNode)
This event is fired when ever a new node has been added to the extendedBN

Parameters:
ebne - The extended BN from which the event was fired
exNode - The extended node which was added to the extended BN

extendedNodeRemoved

void extendedNodeRemoved(ExtendedBNEvent ebne,
                         ExtendedNode exNode)
This event is fired when an extended node is removed from the extended BN

Parameters:
ebne -
extendedNodeID - The int id of the ExtendedNode which has been removed.

extendedNodePasted

void extendedNodePasted(ExtendedBNEvent ebne,
                        ExtendedBN sourceEXBN,
                        ExtendedNode sourceNode,
                        ExtendedNode newExNode)
This event is fired when an extended node is pasted into the extended BN

Parameters:
ebne -
sourceNode - the node that was copied
newExNode - the newly cloned node

extendedNodeReplaced

void extendedNodeReplaced(ExtendedBNEvent ebne,
                          ExtendedNode oldNode,
                          ExtendedNode newNode,
                          ExtendedBN ebn)
This event is fired whenever a node is replaced with another one.

Parameters:
ebne - The extended BN from which the event was fired
oldNode - the old node
newNode - the new node
ebn - the BN containing both nodes

extendedNodeAboutToBeCut

void extendedNodeAboutToBeCut(ExtendedBNEvent ebne,
                              ExtendedBN sourceEXBN,
                              int targetEXNodeID,
                              int sourceEXNodeID,
                              java.lang.String nameCounter)
This event is fired when an ExtendedNode has been pasted to the destination ExtendedBN and is about to be cut from the specified source ExtendedBN. This is the last point at which the ExtendedNode (which has the sourceEXNodeID in the source and the targetEXNodeID in the destination) will exist on both the source and destination ExtendedBN's. Note: Although the ID's of the source and target ExtendedNode are different they are the same object.

Parameters:
ebne - Holds the destination/target ExtendedBN.
sourceEXBN - The ExtendedBN the ExtendedNode is about to be cut from.
targetEXNodeID - The ID of the ExtendedNode which has been pasted to the ExtendedBN in the specified event.
sourceEXNodeID - The ID of the ExtendedNode which is about to be cut from the specified ExtendedBN.
nameCounter - The extra String that was added to the cut/pasted node to make it unique in the destination ExtendedBN.


Copyright © 2006 Agena Ltd. All Rights Reserved.