class BooleanExpression : public ConstantExpression

A Boolean constant expression

Inheritance:


Public Methods

BooleanExpression(bool newValue) throw( ExceptionHugin )
Construct a BooleanExpression from a string
virtual Expression* clone() throw( ExceptionHugin )
Clone the expression
bool getBoolean() throw( ExceptionHugin )
Return the value of the BooleanExpression
Operator getOperator() throw(ExceptionHugin)
Return the Operator for this Expression
bool getValue() throw(ExceptionHugin)
Return the value of teh 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 Boolean constant expression. This type of expression is used to compare with state values of Boolean discrete chance nodes or decision nodes.
BooleanExpression(bool newValue) throw( ExceptionHugin )
Construct a BooleanExpression from a string.
Parameters:
newvalue - boolean

virtual Expression* clone() throw( ExceptionHugin )
Clone the expression.
Returns:
Pointer to Expression

bool getBoolean() throw( ExceptionHugin )
Return the value of the BooleanExpression
Returns:
boolean

Operator getOperator() throw(ExceptionHugin)
Return the Operator for this Expression
Returns:
Operator

bool getValue() throw(ExceptionHugin)
Return the value of teh Expression
Returns:
bool

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