|
|||||||||
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 | |
java.lang.Object |
clone()
Clones this Expression. |
void |
delete()
Deprecated. This method does nothing. |
java.lang.String |
expressionToString()
Returns a String representation of this Expression. |
abstract int |
getOperator()
Returns the "operator" of this Expression. |
boolean |
isCompositeExpression()
Tests if the expression is a CompositeExpression. |
boolean |
isConstantExpression()
Tests if the expression is a ConstantExpression. |
boolean |
isNodeExpression()
Tests if the expression is a NodeExpression. |
static Expression |
stringToExpression(java.lang.String expression,
Model model,
ParseListener parseListener)
Converts a string to an Expression. |
static Expression |
stringToExpression(java.lang.String expression,
NetworkModel network,
ParseListener parseListener)
Deprecated. Replaced by stringToExpression(String,
Model, ParseListener) . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int H_OPERATOR_NORMAL
public static final int H_OPERATOR_LOGNORMAL
public static final int H_OPERATOR_BETA
public static final int H_OPERATOR_GAMMA
public static final int H_OPERATOR_EXPONENTIAL
public static final int H_OPERATOR_WEIBULL
public static final int H_OPERATOR_UNIFORM
public static final int H_OPERATOR_TRIANGULAR
public static final int H_OPERATOR_PERT
public static final int H_OPERATOR_BINOMIAL
public static final int H_OPERATOR_POISSON
public static final int H_OPERATOR_NEGATIVEBINOMIAL
public static final int H_OPERATOR_GEOMETRIC
public static final int H_OPERATOR_DISTRIBUTION
public static final int H_OPERATOR_NOISYOR
public static final int H_OPERATOR_TRUNCATE
public static final int H_OPERATOR_MIN
public static final int H_OPERATOR_MAX
public static final int H_OPERATOR_LOG
public static final int H_OPERATOR_LOG2
public static final int H_OPERATOR_LOG10
public static final int H_OPERATOR_EXP
public static final int H_OPERATOR_SIN
public static final int H_OPERATOR_COS
public static final int H_OPERATOR_TAN
public static final int H_OPERATOR_SINH
public static final int H_OPERATOR_COSH
public static final int H_OPERATOR_TANH
public static final int H_OPERATOR_SQRT
public static final int H_OPERATOR_ABS
public static final int H_OPERATOR_FLOOR
public static final int H_OPERATOR_CEIL
public static final int H_OPERATOR_MOD
public static final int H_OPERATOR_IF
public static final int H_OPERATOR_AND
public static final int H_OPERATOR_OR
public static final int H_OPERATOR_NOT
public static final int H_OPERATOR_ADD
public static final int H_OPERATOR_SUBTRACT
public static final int H_OPERATOR_MULTIPLY
public static final int H_OPERATOR_DIVIDE
public static final int H_OPERATOR_POWER
public static final int H_OPERATOR_NEGATE
public static final int H_OPERATOR_EQUALS
public static final int H_OPERATOR_LESS_THAN
public static final int H_OPERATOR_GREATER_THAN
public static final int H_OPERATOR_NOT_EQUALS
public static final int H_OPERATOR_LESS_THAN_OR_EQUALS
public static final int H_OPERATOR_GREATER_THAN_OR_EQUALS
public static final int H_OPERATOR_NUMBER
public static final int H_OPERATOR_LABEL
public static final int H_OPERATOR_NODE
public static final int H_OPERATOR_BOOLEAN
Method Detail |
public static Expression stringToExpression(java.lang.String expression, Model model, ParseListener parseListener) throws ExceptionHugin
expression
- the String to be parsed.model
- the Model to which the expression belongs.parseListener
- the parse listener that handles parse
errors occuring during the parsing of expression
.
expression
is returned.
ExceptionHugin
public static Expression stringToExpression(java.lang.String expression, NetworkModel network, ParseListener parseListener) throws ExceptionHugin
stringToExpression(String,
Model, ParseListener)
.
ExceptionHugin
public boolean isCompositeExpression()
public boolean isConstantExpression()
public boolean isNodeExpression()
public java.lang.String expressionToString() throws ExceptionHugin
ExceptionHugin
public abstract int getOperator()
public java.lang.Object clone()
public void delete()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |