unbbayes.controller
Class SENController

java.lang.Object
  extended by unbbayes.controller.SENController

public class SENController
extends Object


Nested Class Summary
static class SENController.InferenceAlgorithmEnum
           
 
Field Summary
protected  GaussianMixture gmInference
           
 
Constructor Summary
SENController(SingleEntityNetwork singleEntityNetwork, NetworkWindow screen)
          Constructs a controller for SingleEntityNetwork.
 
Method Summary
 boolean compileNetwork()
          Compiles the network.
 void createContinuousDistribution(ContinuousNode node)
          Creates and shows the panel where the user can edit the continuous node normal distribution.
 void createDiscreteTable(Node node)
          Creates and shows the panel where the user can edit the discrete node table.
 void deleteSelected(Object selecionado)
           
 void deleteSelectedItem()
          Delete the selected item of the graph (a node or a edge)
 IInferenceAlgorithm getInferenceAlgorithm()
           
 void initialize()
          Reset the beliefs for the prior probabilities.
 Node insertContinuousNode(double x, double y)
          Inserts the desired node inside the network creating default state, symbol and description
 Node insertDecisionNode(double x, double y)
          Inserts the desired node inside a network creating a default state, symbol and description.
 boolean insertEdge(Edge edge)
          Links an edge connecting parents and children.
 Node insertProbabilisticNode(double x, double y)
          Inserts the desired node inside the network creating default state, symbol and description
 void insertState(Node node)
          Inserts a new state for a selected node
 Node insertUtilityNode(double x, double y)
          Inserts the desired node inside a network creating a default state, symbol and description.
 JTable makeTable(Node node)
          This method is responsible to represent the potential table as a JTable, including its table model.
 JTable makeTableOld(Node node)
          Deprecated.  
 void propagate()
          Propagates the network's evidences.
 void removeState(Node node)
          Deletes the last state of a selected node
 void setInferenceAlgorithm(IInferenceAlgorithm inferenceAlgorithm)
           
 void showExplanationProperties(ProbabilisticNode node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gmInference

protected GaussianMixture gmInference
Constructor Detail

SENController

public SENController(SingleEntityNetwork singleEntityNetwork,
                     NetworkWindow screen)
Constructs a controller for SingleEntityNetwork.

Method Detail

getInferenceAlgorithm

public IInferenceAlgorithm getInferenceAlgorithm()

setInferenceAlgorithm

public void setInferenceAlgorithm(IInferenceAlgorithm inferenceAlgorithm)

insertState

public void insertState(Node node)
Inserts a new state for a selected node

Parameters:
node - The selected Object .
Since:
See Also:
Object

removeState

public void removeState(Node node)
Deletes the last state of a selected node

Parameters:
node - selected Object .
Since:
See Also:
Object

initialize

public void initialize()
Reset the beliefs for the prior probabilities.


propagate

public void propagate()
Propagates the network's evidences.


compileNetwork

public boolean compileNetwork()
Compiles the network. If there was any problem during compilation, the error message will be shown as a JOptionPane .

Returns:
true if the net was compiled without any problem, false if there was a problem
Since:
See Also:
JOptionPane

insertContinuousNode

public Node insertContinuousNode(double x,
                                 double y)
Inserts the desired node inside the network creating default state, symbol and description

Parameters:
x - The x position.
y - The y position.

insertProbabilisticNode

public Node insertProbabilisticNode(double x,
                                    double y)
Inserts the desired node inside the network creating default state, symbol and description

Parameters:
x - The x position.
y - The y position.

insertDecisionNode

public Node insertDecisionNode(double x,
                               double y)
Inserts the desired node inside a network creating a default state, symbol and description.

Parameters:
x - The x position.
y - The y position.

insertUtilityNode

public Node insertUtilityNode(double x,
                              double y)
Inserts the desired node inside a network creating a default state, symbol and description.

Parameters:
x - The x position.
y - The y position.

insertEdge

public boolean insertEdge(Edge edge)
Links an edge connecting parents and children.

Parameters:
edge - An Edge representing a linking edge

deleteSelectedItem

public void deleteSelectedItem()
Delete the selected item of the graph (a node or a edge)


createContinuousDistribution

public void createContinuousDistribution(ContinuousNode node)
Creates and shows the panel where the user can edit the continuous node normal distribution.

Parameters:
node - The continuous node to create the distribution p`ane for.

createDiscreteTable

public void createDiscreteTable(Node node)
Creates and shows the panel where the user can edit the discrete node table.

Parameters:
node - The discrete node to create the table pan for.

makeTable

public JTable makeTable(Node node)
This method is responsible to represent the potential table as a JTable, including its table model.

Parameters:
no - The node to get its probabilistic table as JTable.
Returns:
Returns the JTable representing the node's probabilistic table.

makeTableOld

public JTable makeTableOld(Node node)
Deprecated. 

Shows the potential table of a desired node

Parameters:
no - a Node representing a node which we wanto to see the table
Since:
See Also:
Node

deleteSelected

public void deleteSelected(Object selecionado)

showExplanationProperties

public void showExplanationProperties(ProbabilisticNode node)


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