COM.hugin.HAPI
Class DiscreteChanceNode

java.lang.Object
  extended byCOM.hugin.HAPI.Node
      extended byCOM.hugin.HAPI.DiscreteNode
          extended byCOM.hugin.HAPI.DiscreteChanceNode
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
BooleanDCNode, IntervalDCNode, LabelledDCNode, NumberedDCNode

public abstract class DiscreteChanceNode
extends DiscreteNode

The DiscreteChanceNode class. Base class for all discrete chance nodes.


Method Summary
 void computeSensitivityData(int state)
          Computes the constants of the sensitivity functions for the specified output probability and all CPT/policy parameters in the network.
 NetworkModel.Category getCategory()
          Returns the Category of this node.
 Table getExperienceTable()
          Returns the experience table of this DiscreteChanceNode.
 Table getFadingTable()
          Returns the fading table of this DiscreteChanceNode.
 boolean hasExperienceTable()
          Returns true if this DiscreteChanceNode has an experience table; returns false otherwise.
 boolean hasFadingTable()
          Returns true if this DiscreteChanceNode has a fading table; returns false otherwise.
 
Methods inherited from class COM.hugin.HAPI.DiscreteNode
caseIsSet, enterFinding, generateTable, getBelief, getCaseState, getEnteredFinding, getEntropy, getExpectedUtility, getKind, getMutualInformation, getNumberOfStates, getPropagatedFinding, getSampledState, getSensitivityConstants, getSensitivityConstants, getStateIndex, getStateLabel, retractFindings, selectState, setCaseState, setNumberOfStates, setStateLabel, unsetCase
 
Methods inherited from class COM.hugin.HAPI.Node
addParent, addToInputs, addToOutputs, clone, delete, evidenceIsEntered, evidenceIsPropagated, evidenceToPropagate, getAttribute, getAttributes, getChildren, getDomain, getEdgeConstraint, getHome, getHomeClass, getHomeDomain, getInstance, getJunctionTree, getLabel, getMaster, getModel, getName, getParents, getPosition, getSource, getTable, getUserData, isAlive, likelihoodIsEntered, likelihoodIsPropagated, removeFromInputs, removeFromOutputs, removeParent, reverseEdge, setAttribute, setAttributes, setEdgeConstraint, setLabel, setName, setPosition, setUserData, switchParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCategory

public NetworkModel.Category getCategory()
Returns the Category of this node.

Specified by:
getCategory in class Node
Returns:
NetworkModel.H_CATEGORY_CHANCE.

hasExperienceTable

public boolean hasExperienceTable()
                           throws ExceptionHugin
Returns true if this DiscreteChanceNode has an experience table; returns false otherwise.

Throws:
ExceptionHugin

hasFadingTable

public boolean hasFadingTable()
                       throws ExceptionHugin
Returns true if this DiscreteChanceNode has a fading table; returns false otherwise.

Throws:
ExceptionHugin

getFadingTable

public Table getFadingTable()
                     throws ExceptionHugin
Returns the fading table of this DiscreteChanceNode.

Throws:
ExceptionHugin

getExperienceTable

public Table getExperienceTable()
                         throws ExceptionHugin
Returns the experience table of this DiscreteChanceNode.

Throws:
ExceptionHugin

computeSensitivityData

public void computeSensitivityData(int state)
                            throws ExceptionHugin
Computes the constants of the sensitivity functions for the specified output probability and all CPT/policy parameters in the network.

This method simply calls computeSensitivityData with the specified output probability as argument.

Parameters:
state - the index of a state of this node - the probability of this state is the desired output probability.
Throws:
ExceptionHugin