unbbayes.prs.bn
Class JunctionTreeAlgorithm

java.lang.Object
  extended by unbbayes.prs.bn.JunctionTreeAlgorithm
All Implemented Interfaces:
IInferenceAlgorithm

public class JunctionTreeAlgorithm
extends Object
implements IInferenceAlgorithm

Class for junction tree compiling algorithm. It includes basic consistency check for single entity networks. By now, this is still a wrapper for ProbabilisticNetwork.compile(). TODO gradually migrate every compilation routine from ProbabilisticNetwork to here.

Author:
Shou Matsumoto

Field Summary
protected static ResourceBundle resource
          Load resource file from this package
 
Constructor Summary
JunctionTreeAlgorithm()
          Default constructor for plugin support
 
Method Summary
 String getDescription()
          Obtains the description of this algorithm.
 String getName()
          Obtains the name of this algorithm
 ProbabilisticNetwork getNet()
           
 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 setNet(ProbabilisticNetwork net)
           
 void setNetwork(Graph g)
          Sets the network (graph) treated by this algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resource

protected static ResourceBundle resource
Load resource file from this package

Constructor Detail

JunctionTreeAlgorithm

public JunctionTreeAlgorithm()
Default constructor for plugin support

Method Detail

getDescription

public String getDescription()
Description copied from interface: IInferenceAlgorithm
Obtains the description of this algorithm. This information is generally used as a tool tip text.

Specified by:
getDescription in interface IInferenceAlgorithm
Returns:
: name of this algorithm.

getName

public String getName()
Description copied from interface: IInferenceAlgorithm
Obtains the name of this algorithm

Specified by:
getName in interface IInferenceAlgorithm
Returns:
: name of this algorithm.

run

public void run()
         throws IllegalStateException
Description copied from interface: IInferenceAlgorithm
Runs the algorithm given the current state of the attributes.

Specified by:
run in interface IInferenceAlgorithm
Throws:
IllegalStateException - : this exception may also be used for general purpose.

setNetwork

public void setNetwork(Graph g)
                throws IllegalArgumentException
Description copied from interface: IInferenceAlgorithm
Sets the network (graph) treated by this algorithm.

Specified by:
setNetwork in interface IInferenceAlgorithm
Parameters:
g - : the network (graph) to set.
Throws:
IllegalArgumentException - : if the given graph is not appropriate for this algorithm.

getNetwork

public Graph getNetwork()
Specified by:
getNetwork in interface IInferenceAlgorithm
Returns:
Gets the network (graph) treated by this algorithm.

getNet

public ProbabilisticNetwork getNet()
Returns:
the net

setNet

public void setNet(ProbabilisticNetwork net)
Parameters:
net - the net to set

reset

public void reset()
Description copied from interface: IInferenceAlgorithm
Resets the algorithm and optionally the network state.

Specified by:
reset in interface IInferenceAlgorithm

propagate

public void propagate()
Description copied from interface: IInferenceAlgorithm
Propagate evidences.

Specified by:
propagate in interface IInferenceAlgorithm


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