HAPI::UtilityNode Class Reference

A UtilityNode represents a utility function. More...

Inheritance diagram for HAPI::UtilityNode:
HAPI::Node

List of all members.

Public Member Functions

UtilityNodeclone () const
 Clone this UtilityNode object.
Category getCategory () const
 Return the node category.
Number getExpectedUtility () const
 Return the expected utility associated with this UtilityNode.
Kind getKind () const
 Return the node kind.
Number getSampledUtility () const
 Return the sampled utility associated with this UtilityNode.
 UtilityNode (NetworkModel *nm)
 Create a new UtilityNode in the given NetworkModel.

Detailed Description

A UtilityNode represents a utility function.

The utility function can depend on discrete chance and discrete decision nodes.


Member Function Documentation

UtilityNode* HAPI::UtilityNode::clone (  )  const [virtual]

Clone this UtilityNode object.

Implements HAPI::Node.

Category HAPI::UtilityNode::getCategory (  )  const [inline, virtual]

Return the node category.

Returns:
H_CATEGORY_UTILITY

Implements HAPI::Node.

Number HAPI::UtilityNode::getExpectedUtility (  )  const

Return the expected utility associated with this UtilityNode.

This is the utility value computed by the most recent inference operation.

Kind HAPI::UtilityNode::getKind (  )  const [inline, virtual]

Return the node kind.

Returns:
H_KIND_OTHER

Implements HAPI::Node.

Number HAPI::UtilityNode::getSampledUtility (  )  const

Return the sampled utility associated with this UtilityNode.

This is the utility value determined by the most recent simulation operation.


Copyright Hugin Expert A/S 1993-2010