COM.hugin.HAPI
Class IntervalDDNode

java.lang.Object
  |
  +--COM.hugin.HAPI.Node
        |
        +--COM.hugin.HAPI.DiscreteDecisionNode
              |
              +--COM.hugin.HAPI.IntervalDDNode

public class IntervalDDNode
extends DiscreteDecisionNode

Interval discrete decision node. Each state of an IntervalDDNode represents an interval.


Constructor Summary
IntervalDDNode(NetworkModel initBelongsTo)
           
 
Method Summary
 double getStateValue(int s)
          Returns the low value of the interval associated with state s.
 double 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.DiscreteDecisionNode
enterFinding, getCategory, getEnteredFinding, getExpectedUtility, getKind, getNumberOfStates, getPropagatedFinding, getStateLabel, retractFindings, selectState, setNumberOfStates, setStateLabel
 
Methods inherited from class COM.hugin.HAPI.Node
addParent, addToInputs, addToOutputs, delete, 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

IntervalDDNode

public IntervalDDNode(NetworkModel initBelongsTo)
               throws ExceptionHugin,
                      ExceptionArgumentNotAlive
Method Detail

getStateValue

public double getStateValue(int s)
                     throws ExceptionObjectNotAlive
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:
state - int

setStateValue

public double setStateValue(int s,
                            double v)
                     throws ExceptionObjectNotAlive
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.

Parameters:
state - int
value - double