class LabelExpression : public ConstantExpression

A label constant expression

Inheritance:


Public Methods

LabelExpression(const std::string& newLabel) throw(HAPI::ExceptionHugin)
Construct a LabelExpression from a string
virtual Expression* clone() throw(HAPI::ExceptionHugin)
Clone the expression
std::string getLabel() throw(HAPI::ExceptionHugin)
Return the label of the expresion
std::string getValue() throw(HAPI::ExceptionHugin)
Return the label of the expresion
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 label constant expression. This type of expression is used to compare with state labels of labelled discrete chance nodes or decision nodes.
LabelExpression(const std::string& newLabel) throw(HAPI::ExceptionHugin)
Construct a LabelExpression from a string.
Parameters:
newLabel - A Standard C++ Library string.

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

std::string getLabel() throw(HAPI::ExceptionHugin)
Return the label of the expresion.
Returns:
string

std::string getValue() throw(HAPI::ExceptionHugin)
Return the label of the expresion.
Returns:
string

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