com.espertech.esper.pattern
Interface Evaluator

All Known Implementing Classes:
EvalAndStateNode, EvalAuditStateNode, EvalEveryDistinctStateExpireKeyNode, EvalEveryDistinctStateNode, EvalEveryStateNode, EvalEveryStateSpawnEvaluator, EvalFollowedByStateNode, EvalFollowedByWithMaxStateNodeManaged, EvalGuardStateNode, EvalMatchUntilStateNode, EvalNotStateNode, EvalOrStateNode, EvalRootStateNode

public interface Evaluator

Interface for nodes in an expression evaluation state tree that are being informed by a child that the event expression fragments (subtrees) which the child represents has turned true (evaluateTrue method) or false (evaluateFalse).


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 isFilterChildNonQuitting()
           
 

Method Detail

evaluateTrue

void evaluateTrue(MatchedEventMap matchEvent,
                  EvalStateNode fromNode,
                  boolean isQuitted)
Indicate a change in truth value to true.

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

void evaluateFalse(EvalStateNode fromNode,
                   boolean restartable)
Indicate a change in truth value to false.

Parameters:
fromNode - is the node that indicates the change
restartable -

isFilterChildNonQuitting

boolean isFilterChildNonQuitting()

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