|
|||||||||
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.DiscreteChanceNode
The discrete chance node. This class is the ancestor for all discrete nodes.
Method Summary | |
boolean |
caseIsSet(int c)
Returns 'true' if a value has been set for this DiscreteChanceNode in case 'c'; otherwise, returns 'false'. |
void |
delete()
Deletes this DiscreteChanceNode. |
void |
enterFinding(int state,
double finding)
Specifies a state value for a given state with all other states unaffected. |
void |
generateTable()
Generates the conditional probability table of this DiscreteChanceNode from its model (a missing model will trigger an ExceptionUsage). |
double |
getBelief(int state)
Returns the belief for the specified state of this DiscreteChanceNode. |
int |
getCaseState(int c)
Returns the state of this DiscreteChanceNode for case 'c'. |
NetworkModel.Category |
getCategory()
Returns the Category for this DiscreteChanceNode. |
double |
getEnteredFinding(int state)
Returns the entered finding for state of this. |
Table |
getExperienceTable()
Returns the experience table of this DiscreteChanceNode. |
Table |
getFadingTable()
Returns the fading table of this DiscreteChanceNode. |
NetworkModel.Kind |
getKind()
Returns the Kind for this DiscreteChanceNode. |
int |
getNumberOfStates()
Returns the number of states in this node. |
double |
getPropagatedFinding(int state)
Returns the propagated finding. |
int |
getSampledState()
Returns the state index of this DiscreteChanceNode for the configuration generated by the most recent call to simulate() . |
int |
getSelection()
Deprecated. Replaced by getSampledState(). |
java.lang.String |
getStateLabel(int state)
Returns the label of state. |
Table |
getTable()
Returns the table associated with this DiscreteChanceNode. |
boolean |
hasExperienceTable()
Returns 'true' if this DiscreteChanceNode has an experience table; returns 'false' otherwise. |
boolean |
hasFadingTable()
Returns 'true' if this DiscreteChanceNode has a fading table; returns 'false' otherwise. |
void |
retractFindings()
Retracts all findings for this node. |
void |
selectState(int state)
Selects the specified state of this DiscreteChanceNode. |
void |
setCaseState(int c,
int state)
Sets the state of this DiscreteChanceNode to 'state' in case 'c'. |
void |
setNumberOfStates(int newNumber)
Sets the number of states of this. |
void |
setStateLabel(int state,
java.lang.String newLabel)
Sets the state label of the node. |
void |
touchTable()
Touches the table of this DiscreteChanceNode. |
void |
unSetCase(int c)
Specifies that the state of this DiscreteChanceNode is 'unknown' for case 'c'. |
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 |
Method Detail |
public double getBelief(int state) throws ExceptionHugin
state
- an integer value representing which state to examine.
ExceptionHugin
public int getSelection() throws ExceptionHugin
ExceptionHugin
public double getEnteredFinding(int state) throws ExceptionHugin
state
- an integer value representing which state to examine.
ExceptionHugin
public double getPropagatedFinding(int state) throws ExceptionHugin
state
- an integer representing 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
state
- an integer representing the state to be examined.
ExceptionHugin
public void setStateLabel(int state, java.lang.String newLabel) throws ExceptionHugin
state
- an integer representing a state.newLabel
- the desired state label (String).
ExceptionHugin
public Table getTable() throws ExceptionHugin
ExceptionHugin
public void selectState(int state) throws ExceptionHugin
state
- an integer representing which state to be
selected. States are numbered consecutively from 0 and upwards.
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 state value.
ExceptionHugin
public void touchTable() throws ExceptionHugin
ExceptionHugin
public NetworkModel.Category getCategory() throws ExceptionObjectNotAlive
getCategory
in class Node
ExceptionObjectNotAlive
public NetworkModel.Kind getKind() throws ExceptionObjectNotAlive
getKind
in class Node
ExceptionObjectNotAlive
public void setCaseState(int c, int state) throws ExceptionHugin
c
- the case index represented as an integer.state
- the state represented as an integer.
ExceptionHugin
public void unSetCase(int c) throws ExceptionHugin
c
- the case index represented as an integer.
ExceptionHugin
public boolean caseIsSet(int c) throws ExceptionHugin
c
- the case index represented as an integer.
ExceptionHugin
public int getCaseState(int c) throws ExceptionHugin
c
- the case index represented as an integer.
ExceptionHugin
public boolean hasExperienceTable() throws ExceptionHugin
ExceptionHugin
public boolean hasFadingTable() throws ExceptionHugin
ExceptionHugin
public Table getFadingTable() throws ExceptionHugin
ExceptionHugin
public Table getExperienceTable() throws ExceptionHugin
ExceptionHugin
public int getSampledState() throws ExceptionHugin
simulate()
.
ExceptionHugin
public void generateTable() throws ExceptionHugin
ExceptionHugin
public void delete() throws ExceptionHugin
delete
in class Node
ExceptionHugin
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |