|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCOM.hugin.HAPI.Expression
Expression is the ancestor of all expression classes. Expression classes are used to build expressions for discrete chance node tables and utility tables (see also class Model).
Method Summary | |
void |
delete()
Deletes this Expression. |
java.lang.String |
expressionToString()
Returns a String representation of this Expression. |
boolean |
isCompositeExpression()
Tests if the the expression is a CompositeExpression. |
boolean |
isConstantExpression()
Tests if the the expression is a ConstantExpression. |
boolean |
isNodeExpression()
Tests if the the expression is a NodeExpression. |
static Expression |
stringToExpression(java.lang.String expression,
Model model,
ExpressionParseListener parseListener)
Converts a string to an Expression. |
static Expression |
stringToExpression(java.lang.String expression,
NetworkModel network,
ExpressionParseListener parseListener)
Deprecated. Replaced by stringToExpression(String,
Model, ExpressionParseListener) . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int H_OPERATOR_BETA
public static final int H_OPERATOR_BINOMIAL
public static final int H_OPERATOR_DISTRIBUTION
public static final int H_OPERATOR_EXPONENTIAL
public static final int H_OPERATOR_GAMMA
public static final int H_OPERATOR_GEOMETRIC
public static final int H_OPERATOR_NEGATIVEBINOMIAL
public static final int H_OPERATOR_NOISYOR
public static final int H_OPERATOR_NORMAL
public static final int H_OPERATOR_POISSON
public static final int H_OPERATOR_UNIFORM
public static final int H_OPERATOR_WEIBULL
public static final int H_OPERATOR_ABS
public static final int H_OPERATOR_ADD
public static final int H_OPERATOR_AND
public static final int H_OPERATOR_BOOLEAN
public static final int H_OPERATOR_CEIL
public static final int H_OPERATOR_COS
public static final int H_OPERATOR_COSH
public static final int H_OPERATOR_DIVIDE
public static final int H_OPERATOR_EQUALS
public static final int H_OPERATOR_ERROR
public static final int H_OPERATOR_EXP
public static final int H_OPERATOR_FLOOR
public static final int H_OPERATOR_GREATER_THAN
public static final int H_OPERATOR_GREATER_THAN_OR_EQUALS
public static final int H_OPERATOR_IF
public static final int H_OPERATOR_LABEL
public static final int H_OPERATOR_LESS_THAN
public static final int H_OPERATOR_LESS_THAN_OR_EQUALS
public static final int H_OPERATOR_LOG
public static final int H_OPERATOR_LOG10
public static final int H_OPERATOR_LOG2
public static final int H_OPERATOR_MAX
public static final int H_OPERATOR_MIN
public static final int H_OPERATOR_MOD
public static final int H_OPERATOR_MULTIPLY
public static final int H_OPERATOR_NEGATE
public static final int H_OPERATOR_NODE
public static final int H_OPERATOR_NOT
public static final int H_OPERATOR_NOT_EQUALS
public static final int H_OPERATOR_NUMBER
public static final int H_OPERATOR_OR
public static final int H_OPERATOR_POWER
public static final int H_OPERATOR_SIN
public static final int H_OPERATOR_SINH
public static final int H_OPERATOR_SQRT
public static final int H_OPERATOR_SUBTRACT
public static final int H_OPERATOR_TAN
public static final int H_OPERATOR_TANH
Method Detail |
public static Expression stringToExpression(java.lang.String expression, Model model, ExpressionParseListener parseListener) throws ExceptionHugin
expression
- the String to be parsed.model
- the Model to which the expression belongs.parseListener
- the ExpressionParseListener that handles
parse errors occuring during the parsing of 'expression'.
ExceptionHugin
public static Expression stringToExpression(java.lang.String expression, NetworkModel network, ExpressionParseListener parseListener) throws ExceptionHugin
stringToExpression(String,
Model, ExpressionParseListener)
.
ExceptionHugin
public boolean isCompositeExpression() throws ExceptionObjectNotAlive
ExceptionObjectNotAlive
public boolean isConstantExpression() throws ExceptionObjectNotAlive
ExceptionObjectNotAlive
public boolean isNodeExpression() throws ExceptionObjectNotAlive
ExceptionObjectNotAlive
public java.lang.String expressionToString() throws ExceptionHugin
ExceptionHugin
public void delete() throws ExceptionHugin
ExceptionHugin
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |