Class Expression
The Expression class is the base of all expression
classes.
Inherited Members
Namespace: HAPI
Assembly: hugincs-9.7-netstandard2.0-x64.dll
Syntax
public abstract class Expression
Remarks
Expression classes are used to build expressions for discrete chance node tables and utility tables (see also class Model and Table).
Constructors
Expression()
Declaration
protected Expression()
Methods
ExpressionToString()
Returns a String representation of this Expression.
Declaration
public string ExpressionToString()
Returns
| Type | Description |
|---|---|
| string |
Exceptions
| Type | Condition |
|---|---|
| ExceptionHugin |
GetOperator()
Returns the operator of this Expression.
Declaration
public abstract Expression.Operator GetOperator()
Returns
| Type | Description |
|---|---|
| Expression.Operator |
StringToExpression(string, Model, ParseListener)
Converts a string to an Expression.
Declaration
public static Expression StringToExpression(string expression, Model model, ParseListener parseListener)
Parameters
| Type | Name | Description |
|---|---|---|
| string | expression | the String to be parsed. |
| Model | model | the Model to which the expression belongs. |
| ParseListener | parseListener | the parse listener that handles parse errors occuring during the parsing of 'expression'. |
Returns
| Type | Description |
|---|---|
| Expression | If the parsing completes successfully, an Expression object corresponding to 'expression' is returned. |
Exceptions
| Type | Condition |
|---|---|
| ExceptionHugin |