unbbayes.util.extension.bn.inference
Interface IInferenceAlgorithm

All Known Implementing Classes:
GaussianMixture, JunctionTreeAlgorithm

public interface IInferenceAlgorithm

This is a interface which every inference algorithm should implement. Plugins adding new inference algorithms should also implement this interface.

Author:
Shou Matsumoto

Method Summary
 String getDescription()
          Obtains the description of this algorithm.
 String getName()
          Obtains the name of this algorithm
 Graph getNetwork()
           
 void propagate()
          Propagate evidences.
 void reset()
          Resets the algorithm and optionally the network state.
 void run()
          Runs the algorithm given the current state of the attributes.
 void setNetwork(Graph g)
          Sets the network (graph) treated by this algorithm.
 

Method Detail

setNetwork

void setNetwork(Graph g)
                throws IllegalArgumentException
Sets the network (graph) treated by this algorithm.

Parameters:
g - : the network (graph) to set.
Throws:
IllegalArgumentException - : if the given graph is not appropriate for this algorithm.

getNetwork

Graph getNetwork()
Returns:
Gets the network (graph) treated by this algorithm.

run

void run()
         throws IllegalStateException
Runs the algorithm given the current state of the attributes.

Throws:
IllegalStateException - : this exception may also be used for general purpose.

getName

String getName()
Obtains the name of this algorithm

Returns:
: name of this algorithm.

getDescription

String getDescription()
Obtains the description of this algorithm. This information is generally used as a tool tip text.

Returns:
: name of this algorithm.

reset

void reset()
Resets the algorithm and optionally the network state.


propagate

void propagate()
Propagate evidences.



Copyright © 2001-2010 University of Brasilia - UnB. All Rights Reserved.