com.cra.bnet.engine
Interface StateListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
StateAdapter

public interface StateListener
extends EventListener

A listener that receives state events from a discrete node in a Bayesian network.


Method Summary
 void stateAdded(StateEvent event)
          Invoked when a new state has beed added to the node.
 void stateNameChanged(StateEvent event)
          Invoked when the name of one of the node's states has been changed.
 void stateRemoved(StateEvent event)
          Invoked when a state has been removed from the node.
 void stateReordered(StateEvent event)
          Invoked when one of the node's states has been reordered.
 

Method Detail

stateAdded

public void stateAdded(StateEvent event)
Invoked when a new state has beed added to the node.

Parameters:
event - state event.

stateRemoved

public void stateRemoved(StateEvent event)
Invoked when a state has been removed from the node.

Parameters:
event - state event.

stateNameChanged

public void stateNameChanged(StateEvent event)
Invoked when the name of one of the node's states has been changed.

Parameters:
event - state event.

stateReordered

public void stateReordered(StateEvent event)
Invoked when one of the node's states has been reordered.

Parameters:
event - state event.