|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--COM.hugin.HAPI.Node
|
+--COM.hugin.HAPI.DiscreteDecisionNode
The discrete decision node. Base class for all decision nodes.
| Method Summary | |
void |
enterFinding(int state,
double finding)
Selects a state of this DiscreteDecisionNode. |
NetworkModel.Category |
getCategory()
Returns the Category of this DiscreteDecisionNode. |
double |
getEnteredFinding(int state)
Retrieve the finding currently registrered at this node for the specified state. |
double |
getExpectedUtility(int state)
Returns the expected utility associated with the specified action (state). |
NetworkModel.Kind |
getKind()
Returns the Kind for this DiscreteDecisionNode. |
int |
getNumberOfStates()
Returns the number of states in this node. |
double |
getPropagatedFinding(int state)
Retrieve the finding value incorporated. |
java.lang.String |
getStateLabel(int state)
Returns the label of state. |
void |
retractFindings()
Retract all findings for this node. |
void |
selectState(int state)
Select the specified state of this node. |
void |
setNumberOfStates(int newNumber)
|
void |
setStateLabel(int state,
java.lang.String newLabel)
Sets the state label of the node. |
| 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 |
| Method Detail |
public double getExpectedUtility(int state)
throws ExceptionObjectNotAlive,
ExceptionHugin
state - An interger value designating which state to
examine.
public double getEnteredFinding(int state)
throws ExceptionObjectNotAlive,
ExceptionHugin
state - An integer designating the state to be
examined.
public double getPropagatedFinding(int state)
throws ExceptionObjectNotAlive,
ExceptionHugin
state - An integer designating the state to be
examined.
public void retractFindings()
throws ExceptionObjectNotAlive,
ExceptionHugin
public int getNumberOfStates()
throws ExceptionObjectNotAlive,
ExceptionHugin
public void setNumberOfStates(int newNumber)
throws ExceptionObjectNotAlive,
ExceptionHugin
public java.lang.String getStateLabel(int state)
throws ExceptionObjectNotAlive,
ExceptionHugin
public void setStateLabel(int state,
java.lang.String newLabel)
throws ExceptionObjectNotAlive,
ExceptionHugin
state - the state number (int).newLabel - the desired state label (String).
public void selectState(int state)
throws ExceptionObjectNotAlive,
ExceptionHugin
public void enterFinding(int state,
double finding)
throws ExceptionObjectNotAlive,
ExceptionHugin
state - an integer representing the state to be
selected. States are numbered consecutively from 0 and upwards.value - a non-negative real number as the finding
value.
public NetworkModel.Category getCategory()
throws ExceptionObjectNotAlive
public NetworkModel.Kind getKind()
throws ExceptionObjectNotAlive
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||