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

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
BooleanEN, ContinuousEN, ContinuousIntervalEN, DiscreteRealEN, ExtendedBN, ExtendedNode, ExtendedNodeAdapter, IntegerIntervalEN, LabelledEN, NumericalEN, RankedEN

public interface ExtendedNodeListener
extends java.util.EventListener

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


Method Summary
 void extendedNodeAttributeChanged(ExtendedNodeEvent ene, int attribute)
          Called when selected attributes of the node are changed.
 void extendedNodeConnBNNotFound(ExtendedNodeEvent ene)
          Invoked whenever the a CoreBN is needed but is not initialised.
 void extendedNodeConnNodeIdChanged(ExtendedNodeEvent ene)
          Invoked when the ConnNodeId of an ExtendedNode is changed.
 void extendedNodeInconsistentEvidenceEntered(ExtendedNodeEvent ene)
          Invoked whenever an inconsistent evidence exception is thrown when entering evidence.
 void extendedNodeMarginalsChanged(ExtendedNodeEvent ene, boolean useMarginalDataSetForStateReplication)
          Invoked whenever the marginals of an ExtendedNode has changed.
 void extendedNodeStateNameChanged(ExtendedNodeEvent ene, ExtendedState es)
          Invoked when an ExtendedState name is changed.
 void extendedNodeStatesReplaced(ExtendedNodeEvent ene)
          Called when the node's states are replaced.
 void extendedNodeVariableAdded(ExtendedNodeEvent ene, Variable addedVarible)
          Invoked when a Variable is added to the ExtendedNodes VariableList.
 void extendedNodeVariableRemoved(ExtendedNodeEvent ene, Variable removedVarible)
          Invoked when a Variable is removed from the ExtendedNodes VariableList.
 void extendedNodeVisibleAttributeChanged(ExtendedNodeEvent ene, boolean visible)
          Invoked when an ExtendedNode visible attribute is changed.
 void extendedStateAdded(ExtendedNodeEvent ene)
          Invoked when an ExtendedState is added to this ExtendedNode
 void extendedStateRemoved(ExtendedNodeEvent ene, int indexOfStateRemoved)
          Invoked when an ExtendedState is removed from this ExtendedNode
 void nodeChanged(ExtendedNodeEvent ene)
          Called whenever a node changes (for selected events)
 

Method Detail

extendedNodeMarginalsChanged

void extendedNodeMarginalsChanged(ExtendedNodeEvent ene,
                                  boolean useMarginalDataSetForStateReplication)
Invoked whenever the marginals of an ExtendedNode has changed.

Parameters:
ene - the event encapsulating information about the change
useMarginalDataSetForStateReplication - TODO

extendedNodeInconsistentEvidenceEntered

void extendedNodeInconsistentEvidenceEntered(ExtendedNodeEvent ene)
Invoked whenever an inconsistent evidence exception is thrown when entering evidence.

Parameters:
ene - the event encapsulating information about the change

extendedNodeConnBNNotFound

void extendedNodeConnBNNotFound(ExtendedNodeEvent ene)
                                throws ExtendedBNException
Invoked whenever the a CoreBN is needed but is not initialised.

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

extendedStateAdded

void extendedStateAdded(ExtendedNodeEvent ene)
Invoked when an ExtendedState is added to this ExtendedNode

Parameters:
ene -

extendedStateRemoved

void extendedStateRemoved(ExtendedNodeEvent ene,
                          int indexOfStateRemoved)
Invoked when an ExtendedState is removed from this ExtendedNode

Parameters:
ene -

extendedNodeStateNameChanged

void extendedNodeStateNameChanged(ExtendedNodeEvent ene,
                                  ExtendedState es)
Invoked when an ExtendedState name is changed.

Parameters:
ene -

extendedNodeVisibleAttributeChanged

void extendedNodeVisibleAttributeChanged(ExtendedNodeEvent ene,
                                         boolean visible)
Invoked when an ExtendedNode visible attribute is changed.

Parameters:
ene -

extendedNodeConnNodeIdChanged

void extendedNodeConnNodeIdChanged(ExtendedNodeEvent ene)
Invoked when the ConnNodeId of an ExtendedNode is changed.

Parameters:
ene -

extendedNodeStatesReplaced

void extendedNodeStatesReplaced(ExtendedNodeEvent ene)
Called when the node's states are replaced.

Parameters:
ene -

extendedNodeVariableAdded

void extendedNodeVariableAdded(ExtendedNodeEvent ene,
                               Variable addedVarible)
Invoked when a Variable is added to the ExtendedNodes VariableList.

Parameters:
ene - The ExtendedNode event.
addedVarible - The Variable that was added.

extendedNodeVariableRemoved

void extendedNodeVariableRemoved(ExtendedNodeEvent ene,
                                 Variable removedVarible)
Invoked when a Variable is removed from the ExtendedNodes VariableList.

Parameters:
ene - The ExtendedNode event.
removedVarible - The Variable that was removed.

extendedNodeAttributeChanged

void extendedNodeAttributeChanged(ExtendedNodeEvent ene,
                                  int attribute)
Called when selected attributes of the node are changed. The Int value in the second arguement defines what attribute it was that changed, the constant value for which are available on the ExtendedNodeEvent class

Parameters:
ene -
attribute -

nodeChanged

void nodeChanged(ExtendedNodeEvent ene)
Called whenever a node changes (for selected events)

Parameters:
ebne - the event encapsulating the change


Copyright © 2006 Agena Ltd. All Rights Reserved.