com.espertech.esper.pattern
Class EvalEveryStateSpawnEvaluator

java.lang.Object
  extended by com.espertech.esper.pattern.EvalEveryStateSpawnEvaluator
All Implemented Interfaces:
Evaluator

public final class EvalEveryStateSpawnEvaluator
extends java.lang.Object
implements Evaluator

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

EvalEveryStateSpawnEvaluator

public EvalEveryStateSpawnEvaluator(java.lang.String statementName)
Method Detail

isEvaluatedTrue

public final boolean isEvaluatedTrue()

evaluateTrue

public final void evaluateTrue(MatchedEventMap matchEvent,
                               EvalStateNode fromNode,
                               boolean isQuitted)
Description copied from interface: Evaluator
Indicate a change in truth value to true.

Specified by:
evaluateTrue in interface Evaluator
Parameters:
matchEvent - is the container for events that caused the change in truth value
fromNode - is the node that indicates the change
isQuitted - is an indication of whether the node continues listenening or stops listening

evaluateFalse

public final void evaluateFalse(EvalStateNode fromNode,
                                boolean restartable)
Description copied from interface: Evaluator
Indicate a change in truth value to false.

Specified by:
evaluateFalse in interface Evaluator
Parameters:
fromNode - is the node that indicates the change

isFilterChildNonQuitting

public boolean isFilterChildNonQuitting()
Specified by:
isFilterChildNonQuitting in interface Evaluator

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com