|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.pattern.EvalStateNode
com.espertech.esper.pattern.EvalMatchUntilStateNode
public class EvalMatchUntilStateNode
This class represents the state of a match-until node in the evaluation state tree.
Field Summary | |
---|---|
protected MatchedEventMap |
beginState
|
protected EvalMatchUntilNode |
evalMatchUntilNode
|
protected java.lang.Integer |
lowerbounds
|
protected java.util.ArrayList<EventBean>[] |
matchedEventArrays
|
protected int |
numMatches
|
protected EvalStateNode |
stateMatcher
|
protected EvalStateNode |
stateUntil
|
protected java.lang.Integer |
upperbounds
|
Constructor Summary | |
---|---|
EvalMatchUntilStateNode(Evaluator parentNode,
EvalMatchUntilNode evalMatchUntilNode)
Constructor. |
Method Summary | |
---|---|
void |
accept(EvalStateNodeVisitor visitor)
Accept a visitor. |
void |
evaluateFalse(EvalStateNode fromNode,
boolean restartable)
Indicate a change in truth value to false. |
void |
evaluateTrue(MatchedEventMap matchEvent,
EvalStateNode fromNode,
boolean isQuitted)
Indicate a change in truth value to true. |
EvalNode |
getFactoryNode()
Returns the factory node for the state node. |
boolean |
isFilterChildNonQuitting()
|
boolean |
isFilterStateNode()
|
boolean |
isNotOperator()
|
boolean |
isObserverStateNodeNonRestarting()
|
void |
quit()
Stops the event expression or an instance of it. |
void |
removeMatch(java.util.Set<EventBean> matchEvent)
Remove matches that overlap with the provided events. |
void |
start(MatchedEventMap beginState)
Starts the event expression or an instance of it. |
java.lang.String |
toString()
|
Methods inherited from class com.espertech.esper.pattern.EvalStateNode |
---|
getParentEvaluator, setParentEvaluator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final EvalMatchUntilNode evalMatchUntilNode
protected MatchedEventMap beginState
protected final java.util.ArrayList<EventBean>[] matchedEventArrays
protected EvalStateNode stateMatcher
protected EvalStateNode stateUntil
protected int numMatches
protected java.lang.Integer lowerbounds
protected java.lang.Integer upperbounds
Constructor Detail |
---|
public EvalMatchUntilStateNode(Evaluator parentNode, EvalMatchUntilNode evalMatchUntilNode)
parentNode
- is the parent evaluator to call to indicate truth valueevalMatchUntilNode
- is the factory node associated to the stateMethod Detail |
---|
public void removeMatch(java.util.Set<EventBean> matchEvent)
EvalStateNode
removeMatch
in class EvalStateNode
matchEvent
- set of events to check forpublic EvalNode getFactoryNode()
EvalStateNode
getFactoryNode
in class EvalStateNode
public final void start(MatchedEventMap beginState)
EvalStateNode
start
in class EvalStateNode
public final void evaluateTrue(MatchedEventMap matchEvent, EvalStateNode fromNode, boolean isQuitted)
Evaluator
evaluateTrue
in interface Evaluator
matchEvent
- is the container for events that caused the change in truth valuefromNode
- is the node that indicates the changeisQuitted
- is an indication of whether the node continues listenening or stops listeningpublic final void evaluateFalse(EvalStateNode fromNode, boolean restartable)
Evaluator
evaluateFalse
in interface Evaluator
fromNode
- is the node that indicates the changepublic final void quit()
EvalStateNode
quit
in class EvalStateNode
public final void accept(EvalStateNodeVisitor visitor)
EvalStateNode
accept
in class EvalStateNode
visitor
- on which the visit method is invoked by each nodepublic final java.lang.String toString()
toString
in class java.lang.Object
public boolean isNotOperator()
isNotOperator
in class EvalStateNode
public boolean isFilterStateNode()
isFilterStateNode
in class EvalStateNode
public boolean isFilterChildNonQuitting()
isFilterChildNonQuitting
in interface Evaluator
public boolean isObserverStateNodeNonRestarting()
isObserverStateNodeNonRestarting
in class EvalStateNode
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |