org.gusdb.wdk.model
Class BooleanExpression
java.lang.Object
org.gusdb.wdk.model.BooleanExpression
public class BooleanExpression
- extends java.lang.Object
|
Method Summary |
BooleanQuestionNode |
parseExpression(java.lang.String expression,
java.util.Map<java.lang.String,Answer> operandMap,
java.util.Map<java.lang.String,java.lang.String> operatorMap)
this function accept a boolean expression that defines the combination of
cached answers in current user's history. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BooleanExpression
public BooleanExpression(WdkModel model)
parseExpression
public BooleanQuestionNode parseExpression(java.lang.String expression,
java.util.Map<java.lang.String,Answer> operandMap,
java.util.Map<java.lang.String,java.lang.String> operatorMap)
throws WdkUserException,
WdkModelException
- this function accept a boolean expression that defines the combination of
cached answers in current user's history. In the expression answers can
be identified by their IDs or names. For example,
#1 UNION "ans_gene", where the answer ID starts with #,
and answer name can be quoted by double quote (the double quote is
required if there's space in answer name).
User can use parenthese in the boolean expression to change the order of
its execution. For example,
#1 MINUS (ans_mRNA UNION "ans tRNA")
- Parameters:
expression - operandMap -
- Returns:
-
- Throws:
WdkUserException
WdkModelException