Class EvalEveryStateSpawnEvaluator
java.lang.Object
com.espertech.esper.common.internal.epl.pattern.every.EvalEveryStateSpawnEvaluator
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
evaluateFalse
(EvalStateNode fromNode, boolean restartable) Indicate a change in truth value to false.final void
evaluateTrue
(MatchedEventMap matchEvent, EvalStateNode fromNode, boolean isQuitted, EventBean optionalTriggeringEvent) Indicate a change in truth value to true.final boolean
boolean
-
Constructor Details
-
EvalEveryStateSpawnEvaluator
-
-
Method Details
-
isEvaluatedTrue
public final boolean isEvaluatedTrue() -
evaluateTrue
public final void evaluateTrue(MatchedEventMap matchEvent, EvalStateNode fromNode, boolean isQuitted, EventBean optionalTriggeringEvent) Description copied from interface:Evaluator
Indicate a change in truth value to true.- Specified by:
evaluateTrue
in interfaceEvaluator
- Parameters:
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 listeningoptionalTriggeringEvent
- in case the truth value changed to true in direct response to an event arriving, provides that event
-
evaluateFalse
Description copied from interface:Evaluator
Indicate a change in truth value to false.- Specified by:
evaluateFalse
in interfaceEvaluator
- Parameters:
fromNode
- is the node that indicates the changerestartable
- whether the evaluator can be restarted
-
isFilterChildNonQuitting
public boolean isFilterChildNonQuitting()- Specified by:
isFilterChildNonQuitting
in interfaceEvaluator
-