com.cra.bnet.engine
Class TopologyAdapter

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

public abstract class TopologyAdapter
extends Object
implements TopologyListener

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


Constructor Summary
TopologyAdapter()
           
 
Method Summary
 void edgeAdded(TopologyEvent event)
          Invoked when an edge has been added to a Bayesian network.
 void edgeRemoved(TopologyEvent event)
          Invoked when an edge has been removed from a Bayesian network.
 void nodeAdded(TopologyEvent event)
          Invoked when a node has been added to a Bayesian network.
 void nodeRemoved(TopologyEvent event)
          Invoked when a node has been removed from a Bayesian network.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopologyAdapter

public TopologyAdapter()
Method Detail

edgeAdded

public void edgeAdded(TopologyEvent event)
Description copied from interface: TopologyListener
Invoked when an edge has been added to a Bayesian network.

Specified by:
edgeAdded in interface TopologyListener
Parameters:
event - the edge added event.

edgeRemoved

public void edgeRemoved(TopologyEvent event)
Description copied from interface: TopologyListener
Invoked when an edge has been removed from a Bayesian network.

Specified by:
edgeRemoved in interface TopologyListener
Parameters:
event - the edge removed event.

nodeAdded

public void nodeAdded(TopologyEvent event)
Description copied from interface: TopologyListener
Invoked when a node has been added to a Bayesian network.

Specified by:
nodeAdded in interface TopologyListener
Parameters:
event - the node added event.

nodeRemoved

public void nodeRemoved(TopologyEvent event)
Description copied from interface: TopologyListener
Invoked when a node has been removed from a Bayesian network.

Specified by:
nodeRemoved in interface TopologyListener
Parameters:
event - the node removed event.