net.esper.pattern
Interface Evaluator

All Known Implementing Classes:
EvalAndStateNode, EvalEveryStateNode, EvalFollowedByStateNode, EvalGuardStateNode, 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)
          Indicate a change in truth value to false.
 void evaluateTrue(MatchedEventMap matchEvent, EvalStateNode fromNode, boolean isQuitted)
          Indicate a change in truth value to true.
 

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)
Indicate a change in truth value to false.

Parameters:
fromNode - is the node that indicates the change

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com