COM.hugin.HAPI
Class LabelExpression

java.lang.Object
  extended byCOM.hugin.HAPI.Expression
      extended byCOM.hugin.HAPI.ConstantExpression
          extended byCOM.hugin.HAPI.LabelExpression

public class LabelExpression
extends ConstantExpression

A label constant expression is used to compare state labels of labelled discrete chance nodes or decision nodes.


Field Summary
 
Fields inherited from class COM.hugin.HAPI.Expression
H_OPERATOR_ABS, H_OPERATOR_ADD, H_OPERATOR_AND, H_OPERATOR_BETA, H_OPERATOR_BINOMIAL, H_OPERATOR_BOOLEAN, H_OPERATOR_CEIL, H_OPERATOR_COS, H_OPERATOR_COSH, H_OPERATOR_DISTRIBUTION, H_OPERATOR_DIVIDE, H_OPERATOR_EQUALS, H_OPERATOR_ERROR, H_OPERATOR_EXP, H_OPERATOR_EXPONENTIAL, H_OPERATOR_FLOOR, H_OPERATOR_GAMMA, H_OPERATOR_GEOMETRIC, H_OPERATOR_GREATER_THAN, H_OPERATOR_GREATER_THAN_OR_EQUALS, H_OPERATOR_IF, H_OPERATOR_LABEL, H_OPERATOR_LESS_THAN, H_OPERATOR_LESS_THAN_OR_EQUALS, H_OPERATOR_LOG, H_OPERATOR_LOG10, H_OPERATOR_LOG2, H_OPERATOR_MAX, H_OPERATOR_MIN, H_OPERATOR_MOD, H_OPERATOR_MULTIPLY, H_OPERATOR_NEGATE, H_OPERATOR_NEGATIVEBINOMIAL, H_OPERATOR_NODE, H_OPERATOR_NOISYOR, H_OPERATOR_NORMAL, H_OPERATOR_NOT, H_OPERATOR_NOT_EQUALS, H_OPERATOR_NUMBER, H_OPERATOR_OR, H_OPERATOR_POISSON, H_OPERATOR_POWER, H_OPERATOR_SIN, H_OPERATOR_SINH, H_OPERATOR_SQRT, H_OPERATOR_SUBTRACT, H_OPERATOR_TAN, H_OPERATOR_TANH, H_OPERATOR_UNIFORM, H_OPERATOR_WEIBULL
 
Constructor Summary
LabelExpression(java.lang.String label)
          Constructs a LabelExpression from a string.
 
Method Summary
 java.lang.Object clone()
          Clones this Expression.
 java.lang.String getLabel()
          Returns the label of the expression.
 int getOperator()
          Returns the operator for this Expression
 java.lang.String getValue()
          Returns the label of the expression.
 boolean isLabelExpression()
          Tests if the expression is a LabelExpression
 
Methods inherited from class COM.hugin.HAPI.ConstantExpression
isConstantExpression
 
Methods inherited from class COM.hugin.HAPI.Expression
delete, expressionToString, isCompositeExpression, isNodeExpression, stringToExpression, stringToExpression
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelExpression

public LabelExpression(java.lang.String label)
                throws ExceptionHugin
Constructs a LabelExpression from a string.

Parameters:
label - A standard string
Method Detail

getValue

public java.lang.String getValue()
                          throws ExceptionHugin
Returns the label of the expression.

Returns:
String
Throws:
ExceptionHugin

getLabel

public java.lang.String getLabel()
                          throws ExceptionHugin
Returns the label of the expression.

Returns:
String
Throws:
ExceptionHugin

getOperator

public int getOperator()
                throws ExceptionObjectNotAlive
Returns the operator for this Expression

Returns:
Operator
Throws:
ExceptionObjectNotAlive

clone

public java.lang.Object clone()
Clones this Expression.

Returns:
Pointer to expression

isLabelExpression

public boolean isLabelExpression()
                          throws ExceptionObjectNotAlive
Tests if the expression is a LabelExpression

Returns:
True Boolean
Throws:
ExceptionObjectNotAlive