Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

HAPI::IntervalDCNode Class Reference

Inheritance diagram for HAPI::IntervalDCNode:

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

Detailed Description

Interval discrete chance node. Each state represents an interval.


Public Member Functions

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

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

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

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

void setStateValue (size_t state, double value)
 Associate a value with the specified state.


Member Function Documentation

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

Return the value associated with the specified state.

Parameters:
state size_t

void HAPI::IntervalDCNode::setNumberOfStates size_t  states  ) 
 

Set the number of states in this node to states.

The corresponding domain will be uncompiled.

Parameters:
states the new number of states

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

Associate a value with the specified state.

Parameters:
state the state for which the value is specified
value the value to specify


Copyright Hugin Expert A/S 1993-2004