HAPI::FunctionNode Class Reference

A FunctionNode represents a real-valued function. More...

Inheritance diagram for HAPI::FunctionNode:
HAPI::Node

List of all members.

Public Member Functions

FunctionNodeclone () const
 Clone this FunctionNode object.
 FunctionNode (NetworkModel *nm)
 Create a new FunctionNode in the given NetworkModel.
Category getCategory () const
 Return the node category.
Kind getKind () const
 Return the node kind.
double getSampledValue () const
 Return the sampled value of this FunctionNode.
double getValue () const
 Return the value of this FunctionNode.

Detailed Description

A FunctionNode represents a real-valued function.

This function is specified using expressions (which may refer to the values of the parents) in a Model.


Constructor & Destructor Documentation

HAPI::FunctionNode::FunctionNode ( NetworkModel nm  ) 

Create a new FunctionNode in the given NetworkModel.


Member Function Documentation

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

Clone this FunctionNode object.

Implements HAPI::Node.

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

Return the node category.

Returns:
H_CATEGORY_FUNCTION

Implements HAPI::Node.

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

Return the node kind.

Returns:
H_KIND_OTHER

Implements HAPI::Node.

double HAPI::FunctionNode::getSampledValue (  )  const

Return the sampled value of this FunctionNode.

The value is computed using the function associated with the node. If the function refers to other nodes, then the values of those nodes are derived from the results of the most recent simulation operation.

double HAPI::FunctionNode::getValue (  )  const

Return the value of this FunctionNode.

The value is computed using the function associated with the node. If the function refers to other nodes, then the values of those nodes are derived from the results of the most recent inference operation.


Copyright Hugin Expert A/S 1993-2010