Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

HAPI::NumberedDDNode Class Reference

Inheritance diagram for HAPI::NumberedDDNode:

HAPI::DiscreteDecisionNode HAPI::Node List of all members.

Detailed Description

Numbered discrete decision node.

Each state of an NumberedDDNode represents a number.


Public Member Functions

 NumberedDDNode (Domain *dom)
 Create a new NumberedDDNode in the given Domain.

 NumberedDDNode (Class *cls)
 Create a new NumberedDDNode in the given Class.

double getStateValue (size_t state) const
 Return the value associated with state.

void setNumberOfStates (size_t states)
 Set the number of states in this node.

void setStateValue (size_t state, double value)
 Set the value associated with state.


Member Function Documentation

double HAPI::NumberedDDNode::getStateValue size_t  state  )  const
 

Return the value associated with state.

Parameters:
state size_t

void HAPI::NumberedDDNode::setNumberOfStates size_t  states  ) 
 

Set the number of states in this node.

The corresponding domain will be uncompiled.

Parameters:
states size_t

void HAPI::NumberedDDNode::setStateValue size_t  state,
double  value
 

Set the value associated with state.

Parameters:
state size_t
value double


Copyright Hugin Expert A/S 1993-2004