COM.hugin.HAPI
Class NumberedDCNode

java.lang.Object
  |
  +--COM.hugin.HAPI.Node
        |
        +--COM.hugin.HAPI.DiscreteChanceNode
              |
              +--COM.hugin.HAPI.NumberedDCNode

public class NumberedDCNode
extends DiscreteChanceNode

Numbered discrete chance node. Each state of an NumberedDCNode represents a number.


Constructor Summary
NumberedDCNode(NetworkModel initBelongsTo)
          Constructs a new NumberedDCNode.
 
Method Summary
 double getStateValue(int s)
          Returns the value associated with a particular state of this NumberedDCNode.
 double setStateValue(int s, double v)
          Sets the value associated with a particular state of this NumberedDCNode.
 
Methods inherited from class COM.hugin.HAPI.DiscreteChanceNode
caseIsSet, delete, enterFinding, generateTable, getBelief, getCaseState, getCategory, getEnteredFinding, getExperienceTable, getFadingTable, getKind, getNumberOfStates, getPropagatedFinding, getSampledState, getSelection, getStateLabel, getTable, hasExperienceTable, hasFadingTable, retractFindings, selectState, setCaseState, setNumberOfStates, setStateLabel, touchTable, unSetCase
 
Methods inherited from class COM.hugin.HAPI.Node
addParent, addToInputs, addToOutputs, evidenceIsEntered, evidenceIsPropagated, evidenceToPropagate, getAttribute, getAttributes, getChildren, getDomain, getEdgeConstraint, getHome, getHomeClass, getHomeDomain, getInstance, getJunctionTree, getLabel, getMaster, getModel, getName, getParents, getPosition, getSource, getUserData, likelihoodIsEntered, likelihoodIsPropagated, removeFromInputs, removeFromOutputs, removeParent, reverseEdge, setAttribute, setEdgeConstraint, setLabel, setName, setPosition, setUserData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberedDCNode

public NumberedDCNode(NetworkModel initBelongsTo)
               throws ExceptionHugin,
                      ExceptionArgumentNotAlive
Constructs a new NumberedDCNode.
Method Detail

getStateValue

public double getStateValue(int s)
                     throws ExceptionObjectNotAlive
Returns the value associated with a particular state of this NumberedDCNode.

Parameters:
s - the index of the state in question.

setStateValue

public double setStateValue(int s,
                            double v)
                     throws ExceptionObjectNotAlive
Sets the value associated with a particular state of this NumberedDCNode.

Parameters:
s - the index of the state in question.
v - the new value for state 's'.