|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCOM.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. |
int |
getSampledState()
Returns the state index of this DiscreteDecisionNode for the configuration generated by the most recent call to simulate() . |
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, 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 |
public double getExpectedUtility(int state) throws ExceptionHugin
state
- An interger value designating which state to
examine.
ExceptionHugin
public double getEnteredFinding(int state) throws ExceptionHugin
state
- An integer designating the state to be
examined.
ExceptionHugin
public double getPropagatedFinding(int state) throws ExceptionHugin
state
- An integer designating the state to be
examined.
ExceptionHugin
public void retractFindings() throws ExceptionHugin
ExceptionHugin
public int getNumberOfStates() throws ExceptionHugin
ExceptionHugin
public void setNumberOfStates(int newNumber) throws ExceptionHugin
ExceptionHugin
public java.lang.String getStateLabel(int state) throws ExceptionHugin
ExceptionHugin
public void setStateLabel(int state, java.lang.String newLabel) throws ExceptionHugin
state
- the state number (int).newLabel
- the desired state label (String).
ExceptionHugin
public void selectState(int state) throws ExceptionHugin
ExceptionHugin
public void enterFinding(int state, double finding) throws ExceptionHugin
state
- an integer representing the state to be
selected. States are numbered consecutively from 0 and upwards.finding
- a non-negative real number as the finding
value.
ExceptionHugin
public NetworkModel.Category getCategory() throws ExceptionObjectNotAlive
getCategory
in class Node
ExceptionObjectNotAlive
public NetworkModel.Kind getKind() throws ExceptionObjectNotAlive
getKind
in class Node
ExceptionObjectNotAlive
public int getSampledState() throws ExceptionHugin
simulate()
.
ExceptionHugin
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |