HAPI::NumberExpression Class Reference

A numeric constant expression. More...

Inheritance diagram for HAPI::NumberExpression:
HAPI::ConstantExpression HAPI::Expression

List of all members.

Public Member Functions

Expressionclone () const
 Clone the expression.
double getNumber () const
 Return the number respresented by the expression.
double getValue () const
 Return the number respresented by the expression.
bool isBooleanExpression () const
 Test if the expression is a BooleanExpression.
bool isLabelExpression () const
 Test if the expression is a LabelExpression.
bool isNumberExpression () const
 Test if the expression is a NumberExpression.
 NumberExpression (double value)
 Create a new NumberExpression representing the given value.

Detailed Description

A numeric constant expression.

This type of expression is used to compare with state values of numbered or interbal discrete chance nodes or decision nodes.


Constructor & Destructor Documentation

HAPI::NumberExpression::NumberExpression ( double  value  ) 

Create a new NumberExpression representing the given value.

Parameters:
value the number to represent
Returns:
a new NumberExpression

Copyright Hugin Expert A/S 1993-2010