|
||||||||||
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.EvalObserverStateNode
public class EvalObserverStateNode
This class represents the state of an eventObserver sub-expression in the evaluation state tree.
Field Summary | |
---|---|
protected EvalObserverNode |
evalObserverNode
|
protected EventObserver |
eventObserver
|
Constructor Summary | |
---|---|
EvalObserverStateNode(Evaluator parentNode,
EvalObserverNode evalObserverNode)
Constructor. |
Method Summary | |
---|---|
void |
accept(EvalStateNodeVisitor visitor)
Accept a visitor. |
PatternAgentInstanceContext |
getContext()
|
EvalNode |
getFactoryNode()
Returns the factory node for the state node. |
boolean |
isFilterStateNode()
|
boolean |
isNotOperator()
|
boolean |
isObserverStateNodeNonRestarting()
|
void |
observerEvaluateFalse(boolean restartable)
Indicate that the observer turned permanently false. |
void |
observerEvaluateTrue(MatchedEventMap matchEvent,
boolean quitted)
Indicate an event for evaluation (sub-expression the observer represents has turned true). |
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 EvalObserverNode evalObserverNode
protected EventObserver eventObserver
Constructor Detail |
---|
public EvalObserverStateNode(Evaluator parentNode, EvalObserverNode evalObserverNode)
parentNode
- is the parent evaluator to call to indicate truth valueevalObserverNode
- 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 PatternAgentInstanceContext getContext()
getContext
in interface ObserverEventEvaluator
public void observerEvaluateTrue(MatchedEventMap matchEvent, boolean quitted)
ObserverEventEvaluator
observerEvaluateTrue
in interface ObserverEventEvaluator
matchEvent
- is the matched events so farquitted
- whether the observer quit, usually "true" for most observerspublic void observerEvaluateFalse(boolean restartable)
ObserverEventEvaluator
observerEvaluateFalse
in interface ObserverEventEvaluator
public void start(MatchedEventMap beginState)
EvalStateNode
start
in class EvalStateNode
public 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 boolean isNotOperator()
isNotOperator
in class EvalStateNode
public boolean isFilterStateNode()
isFilterStateNode
in class EvalStateNode
public boolean isObserverStateNodeNonRestarting()
isObserverStateNodeNonRestarting
in class EvalStateNode
public final java.lang.String toString()
toString
in class java.lang.Object
|
© 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 |