|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.pattern.EvalEveryStateSpawnEvaluator
public final class EvalEveryStateSpawnEvaluator
This class contains the state of an 'every' operator in the evaluation state tree. EVERY nodes work as a factory for new state subnodes. When a child node of an EVERY node calls the evaluateTrue method on the EVERY node, the EVERY node will call newState on its child node BEFORE it calls evaluateTrue on its parent node. It keeps a reference to the new child in its list. (BEFORE because the root node could call quit on child nodes for stopping all listeners).
Constructor Summary | |
---|---|
EvalEveryStateSpawnEvaluator(java.lang.String statementName)
|
Method Summary | |
---|---|
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. |
boolean |
isEvaluatedTrue()
|
boolean |
isFilterChildNonQuitting()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EvalEveryStateSpawnEvaluator(java.lang.String statementName)
Method Detail |
---|
public final boolean isEvaluatedTrue()
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 boolean isFilterChildNonQuitting()
isFilterChildNonQuitting
in interface Evaluator
|
© 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 |