class NumberExpression : public ConstantExpression

A numeric constant expression

Inheritance:


Public Methods

virtual Expression* clone() throw(HAPI::ExceptionHugin)
Clone the expression
double getNumber() throw(HAPI::ExceptionHugin)
Return the number respresented by the expression
double getValue() throw(HAPI::ExceptionHugin)
Return the number respresented by the expression
bool isBooleanExpression() throw()
Test if the the expression is a BooleanExpression
bool isLabelExpression() throw()
Test if the the expression is a LabelExpression
bool isNumberExpression() throw()
Test if the the expression is a NumberExpression

Inherited from ConstantExpression:

Public Methods

bool isConstantExpression() throw()
bool isCompositeExpression() throw()
bool isNodeExpression() throw()

Inherited from Expression:

Public Methods

static Expression* stringToExpression(const std::string& str, Domain dom) throw( ExceptionHugin )
static Expression* stringToExpression(const std::string& str, NetworkModel* dom) throw( ExceptionHugin )

Documentation

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.
virtual Expression* clone() throw(HAPI::ExceptionHugin)
Clone the expression.
Returns:
Pointer to Expression

double getNumber() throw(HAPI::ExceptionHugin)
Return the number respresented by the expression
Returns:
double

double getValue() throw(HAPI::ExceptionHugin)
Return the number respresented by the expression
Returns:
double

bool isBooleanExpression() throw()
Test if the the expression is a BooleanExpression
Returns:
boolean

bool isLabelExpression() throw()
Test if the the expression is a LabelExpression
Returns:
boolean

bool isNumberExpression() throw()
Test if the the expression is a NumberExpression
Returns:
boolean


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de