A numeric constant expression. More...
Public Member Functions | |
| 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. | |
| NumberExpression (double value) | |
| Create a new NumberExpression representing the given value. | |
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.
| HAPI::NumberExpression::NumberExpression | ( | double | value | ) |
Create a new NumberExpression representing the given value.
| value | the number to represent |