|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umass.cs.sase.query.PredicateOptimized
public class PredicateOptimized
This class represents a predicate of an edge. Assumption: no parentheses
Constructor Summary | |
---|---|
PredicateOptimized(java.lang.String pre)
Default constructor |
Method Summary | |
---|---|
void |
checkSingle()
Checks if the predicate needs other events |
boolean |
evaluate(Event currentEvent,
Event previousEvent)
Evaluates an event against this predicate |
boolean |
evaluate(Event currentEvent,
Run r,
EventBuffer b)
Evaluates an event against the predicate |
void |
formatPredicate()
Format the description for evaluation |
Operand |
getAggregationOperand()
|
java.lang.String |
getAttributeName()
|
net.sourceforge.jeval.Evaluator |
getEvl()
|
java.lang.String |
getFormatedPredicate()
|
java.util.ArrayList<Operand> |
getLeftOperands()
|
java.lang.String |
getLogicalOperator()
|
java.lang.String |
getOperation()
|
java.lang.String |
getPredicateDescription()
|
java.lang.String |
getRelatedState()
|
java.util.ArrayList<Operand> |
getRightOperands()
|
java.lang.String |
getTempAttributeName()
|
Operand |
getTempOperand()
|
java.util.ArrayList<Operand> |
getVarOperands()
|
boolean |
isSingleState()
|
void |
linkAggregationOperand()
Deals with the aggregation operand |
void |
parseLeftOperand(java.lang.String expression)
Parses the operands on the left side of the logical operator |
void |
parseLeftRight(java.lang.String logicOperation)
Parses left or right part of the predicate |
void |
parsePredicate()
Parses the predicate |
void |
parseRightOperand(java.lang.String expression)
Parses the operands on the right side of the operator |
void |
setAggregationOperand(Operand aggregationOperand)
|
void |
setAttributeName(java.lang.String attributeName)
|
void |
setEvl(net.sourceforge.jeval.Evaluator evl)
|
void |
setFormatedPredicate(java.lang.String formatedPredicate)
|
void |
setLeftOperands(java.util.ArrayList<Operand> leftOperands)
|
void |
setLogicalOperator(java.lang.String logicalOperator)
|
void |
setOperation(java.lang.String operation)
|
void |
setPredicateDescription(java.lang.String predicateDescription)
|
void |
setRelatedState(java.lang.String relatedState)
|
void |
setRightOperands(java.util.ArrayList<Operand> rightOperands)
|
void |
setSingleState(boolean isSingleState)
|
void |
setTempAttributeName(java.lang.String tempAttributeName)
|
void |
setTempOperand(Operand tempOperand)
|
void |
setVarOperands(java.util.ArrayList<Operand> varOperands)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PredicateOptimized(java.lang.String pre)
pre
- the description of a predicateMethod Detail |
---|
public void linkAggregationOperand()
public void checkSingle()
public void formatPredicate()
public void parsePredicate()
public void parseLeftRight(java.lang.String logicOperation)
logicOperation
- the logic operator of this predicatepublic void parseLeftOperand(java.lang.String expression)
expression
- public void parseRightOperand(java.lang.String expression)
expression
- public boolean evaluate(Event currentEvent, Event previousEvent) throws net.sourceforge.jeval.EvaluationException
currentEvent
- the current eventpreviousEvent
- previous event in the same run
net.sourceforge.jeval.EvaluationException
public boolean evaluate(Event currentEvent, Run r, EventBuffer b) throws net.sourceforge.jeval.EvaluationException
currentEvent
- the current eventr
- the run
net.sourceforge.jeval.EvaluationException
public java.lang.String getPredicateDescription()
public void setPredicateDescription(java.lang.String predicateDescription)
predicateDescription
- the predicateDescription to setpublic java.lang.String getFormatedPredicate()
public void setFormatedPredicate(java.lang.String formatedPredicate)
formatedPredicate
- the formatedPredicate to setpublic java.lang.String getLogicalOperator()
public void setLogicalOperator(java.lang.String logicalOperator)
logicalOperator
- the logicalOperator to setpublic java.util.ArrayList<Operand> getLeftOperands()
public void setLeftOperands(java.util.ArrayList<Operand> leftOperands)
leftOperands
- the leftOperands to setpublic java.util.ArrayList<Operand> getRightOperands()
public void setRightOperands(java.util.ArrayList<Operand> rightOperands)
rightOperands
- the rightOperands to setpublic net.sourceforge.jeval.Evaluator getEvl()
public void setEvl(net.sourceforge.jeval.Evaluator evl)
evl
- the evl to setpublic boolean isSingleState()
public void setSingleState(boolean isSingleState)
isSingleState
- the isSingleState to setpublic java.util.ArrayList<Operand> getVarOperands()
public void setVarOperands(java.util.ArrayList<Operand> varOperands)
varOperands
- the varOperands to setpublic Operand getAggregationOperand()
public void setAggregationOperand(Operand aggregationOperand)
aggregationOperand
- the aggregationOperand to setpublic java.lang.String getRelatedState()
public void setRelatedState(java.lang.String relatedState)
relatedState
- the relatedState to setpublic java.lang.String getOperation()
public void setOperation(java.lang.String operation)
operation
- the operation to setpublic java.lang.String getAttributeName()
public void setAttributeName(java.lang.String attributeName)
attributeName
- the attributeName to setpublic Operand getTempOperand()
public void setTempOperand(Operand tempOperand)
tempOperand
- the tempOperand to setpublic java.lang.String getTempAttributeName()
public void setTempAttributeName(java.lang.String tempAttributeName)
tempAttributeName
- the tempAttributeName to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |