|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectunbbayes.prs.bn.JunctionTreeAlgorithm
public class JunctionTreeAlgorithm
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.
| 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 |
|---|
protected static ResourceBundle resource
| Constructor Detail |
|---|
public JunctionTreeAlgorithm()
| Method Detail |
|---|
public String getDescription()
IInferenceAlgorithm
getDescription in interface IInferenceAlgorithmpublic String getName()
IInferenceAlgorithm
getName in interface IInferenceAlgorithm
public void run()
throws IllegalStateException
IInferenceAlgorithm
run in interface IInferenceAlgorithmIllegalStateException - : this exception
may also be used for general purpose.
public void setNetwork(Graph g)
throws IllegalArgumentException
IInferenceAlgorithm
setNetwork in interface IInferenceAlgorithmg - : the network (graph) to set.
IllegalArgumentException - : if the given graph is not appropriate
for this algorithm.public Graph getNetwork()
getNetwork in interface IInferenceAlgorithmpublic ProbabilisticNetwork getNet()
public void setNet(ProbabilisticNetwork net)
net - the net to setpublic void reset()
IInferenceAlgorithm
reset in interface IInferenceAlgorithmpublic void propagate()
IInferenceAlgorithm
propagate in interface IInferenceAlgorithm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||