COM.hugin.HAPI
Class IntervalDCNode

java.lang.Object
  extended byCOM.hugin.HAPI.Node
      extended byCOM.hugin.HAPI.DiscreteChanceNode
          extended byCOM.hugin.HAPI.IntervalDCNode

public class IntervalDCNode
extends DiscreteChanceNode

Interval discrete chance node. Each state of an IntervalDCNode represents an interval.


Constructor Summary
IntervalDCNode(NetworkModel initBelongsTo)
           
 
Method Summary
 double getStateValue(int s)
          Returns the low value of the interval associated with state s.
 void setStateValue(int s, double v)
          Sets the low value of the interval associated with state s to v.
 
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, setAttributes, setEdgeConstraint, setLabel, setName, setPosition, setUserData, switchParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntervalDCNode

public IntervalDCNode(NetworkModel initBelongsTo)
               throws ExceptionHugin
Method Detail

getStateValue

public double getStateValue(int s)
                     throws ExceptionHugin
Returns the low value of the interval associated with state s. To indicate the right endpoint of the rightmost interval, specify s equal to the number of states of this.

Parameters:
s - int
Throws:
ExceptionHugin

setStateValue

public void setStateValue(int s,
                          double v)
                   throws ExceptionHugin
Sets the low value of the interval associated with state s to v. To indicate the right endpoint of the rightmost interval, specify s equal to the number of states of this IntervalDCNode.

Parameters:
s - int
v - double
Throws:
ExceptionHugin