|
||||||||
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
public class 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 |
getMaxUtility()
Returns the maximum possible utility associated with this UtilityNode. |
double |
getMinUtility()
Returns the minimum possible utility associated with this UtilityNode. |
double |
getSampledUtility()
Returns the sampled utility associated with this UtilityNode. |
double |
getVarianceOfUtility()
Returns the variance of the utility associated with this UtilityNode. |
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.
ExceptionHugin
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
public double getVarianceOfUtility() throws ExceptionHugin
ExceptionHugin
public double getMinUtility() throws ExceptionHugin
ExceptionHugin
public double getMaxUtility() throws ExceptionHugin
ExceptionHugin
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |