|
|||||||||
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.UtilityNode
A UtilityNode represents a utility function. The utility function can depend on discrete chance and decision Nodes.
Constructor Summary | |
UtilityNode(NetworkModel belongsTo)
Constructs a new UtilityNode in a NetworkModel (i.e., a Class or a Domain). |
Method Summary | |
void |
generateTable()
Generates the utility table of this UtilityNode from its model. |
NetworkModel.Category |
getCategory()
Returns the Category of this UtilityNode. |
double |
getExpectedUtility()
Returns the expected utility associated with this UtilityNode. |
NetworkModel.Kind |
getKind()
Returns the Kind of this UtilityNode. |
double |
getSampledUtility()
Returns the sampled utility associated with this UtilityNode. |
Methods inherited from class COM.hugin.HAPI.Node |
addParent, addToInputs, addToOutputs, clone, delete, evidenceIsEntered, evidenceIsPropagated, evidenceToPropagate, getAttribute, getAttributes, getChildren, getDomain, getEdgeConstraint, getHome, getHomeClass, getHomeDomain, getInstance, getJunctionTree, getLabel, getMaster, getModel, getName, getParents, getPosition, getSource, getTable, getUserData, isAlive, 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 |
public UtilityNode(NetworkModel belongsTo) throws ExceptionHugin
belongsTo
- the NetworkModel in which the new UtilityNode
should be created.Method Detail |
public NetworkModel.Category getCategory()
getCategory
in class Node
public NetworkModel.Kind getKind()
getKind
in class Node
public void generateTable() throws ExceptionHugin
ExceptionHugin
public double getExpectedUtility() throws ExceptionHugin
ExceptionHugin
public double getSampledUtility() throws ExceptionHugin
Domain.simulate()
.
ExceptionHugin
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |