HAPI::IntervalDDNode Class Reference

Interval discrete decision node. More...

Inheritance diagram for HAPI::IntervalDDNode:
HAPI::DiscreteDecisionNode HAPI::DiscreteNode HAPI::Node

List of all members.

Public Member Functions

IntervalDDNodeclone () const
 Clone this IntervalDDNode object.
Index getStateIndex (double value) const
 Return the index of the state (interval) matching the specified value.
double getStateValue (size_t state) const
 Return the value associated with state.
 IntervalDDNode (NetworkModel *nm)
 Create a new IntervalDDNode in the given NetworkModel.
void setStateValue (size_t state, double value)
 Set the value associated with state.

Detailed Description

Interval discrete decision node.

Each state of an IntervalDDNode represents an interval.


Member Function Documentation

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

Clone this IntervalDDNode object.

Implements HAPI::Node.

Index HAPI::IntervalDDNode::getStateIndex ( double  value  )  const

Return the index of the state (interval) matching the specified value.

If there is no interval containing the specified value, -1 is returned.

Parameters:
value an interval containing this value will be searched for
Returns:
the index of the state (interval) containing the specified value.

Copyright Hugin Expert A/S 1993-2010