Inheritance diagram for HAPI::NumberExpression:
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. | |
Expression * | clone () 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. |
|
Create a new NumberExpression representing the given value.
|
|
Clone the expression.
Implements HAPI::Expression. |
|
Return the number respresented by the expression.
|
|
Return the number respresented by the expression.
|
|
Test if the expression is a BooleanExpression.
Implements HAPI::ConstantExpression. |
|
Test if the expression is a LabelExpression.
Implements HAPI::ConstantExpression. |
|
Test if the expression is a NumberExpression.
Implements HAPI::ConstantExpression. |