Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

HAPI::NumberExpression Class Reference

Inheritance diagram for HAPI::NumberExpression:

HAPI::ConstantExpression HAPI::Expression List of all members.

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.


Public Member Functions

 NumberExpression (double value)
 Create a new NumberExpression representing the given value.

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.


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


Member Function Documentation

Expression* HAPI::NumberExpression::clone  )  const [virtual]
 

Clone the expression.

Returns:
Pointer to Expression

Implements HAPI::Expression.

double HAPI::NumberExpression::getNumber  )  const
 

Return the number respresented by the expression.

Returns:
double

double HAPI::NumberExpression::getValue  )  const [inline]
 

Return the number respresented by the expression.

Returns:
double

bool HAPI::NumberExpression::isBooleanExpression  )  const [inline, virtual]
 

Test if the expression is a BooleanExpression.

Returns:
boolean

Implements HAPI::ConstantExpression.

bool HAPI::NumberExpression::isLabelExpression  )  const [inline, virtual]
 

Test if the expression is a LabelExpression.

Returns:
boolean

Implements HAPI::ConstantExpression.

bool HAPI::NumberExpression::isNumberExpression  )  const [inline, virtual]
 

Test if the expression is a NumberExpression.

Returns:
boolean

Implements HAPI::ConstantExpression.


Copyright Hugin Expert A/S 1993-2004