Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

HAPI::NumberedDCNode Class Reference

Inheritance diagram for HAPI::NumberedDCNode:

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

Detailed Description

Numbered discrete chance node.

Each state represents a number.


Public Member Functions

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

 NumberedDCNode (Class *cls)
 Create a new NumberedDCNode 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 to states.

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


Member Function Documentation

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

Return the value associated with state.

Parameters:
state size_t

void HAPI::NumberedDCNode::setNumberOfStates size_t  states  ) 
 

Set the number of states in this node to states.

The corresponding domain will be uncompiled.

Parameters:
states size_t

void HAPI::NumberedDCNode::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