com.espertech.esper.pattern
Class EvalNodeBase

java.lang.Object
  extended by com.espertech.esper.pattern.EvalNodeBase
All Implemented Interfaces:
EvalNode
Direct Known Subclasses:
EvalAndNode, EvalAuditNode, EvalEveryDistinctNode, EvalEveryNode, EvalFilterNode, EvalFollowedByNode, EvalGuardNode, EvalMatchUntilNode, EvalNotNode, EvalObserverNode, EvalOrNode, EvalRootNode

public abstract class EvalNodeBase
extends java.lang.Object
implements EvalNode

Superclass of all nodes in an evaluation tree representing an event pattern expression. Follows the Composite pattern. Child nodes do not carry references to parent nodes, the tree is unidirectional.


Constructor Summary
protected EvalNodeBase(PatternAgentInstanceContext context)
           
 
Method Summary
 PatternAgentInstanceContext getContext()
           
abstract  EvalStateNode newState(Evaluator parentNode, EvalStateNodeNumber stateNodeNumber, long stateNodeId)
          Create the evaluation state node containing the truth value state for each operator in an event expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvalNodeBase

protected EvalNodeBase(PatternAgentInstanceContext context)
Method Detail

newState

public abstract EvalStateNode newState(Evaluator parentNode,
                                       EvalStateNodeNumber stateNodeNumber,
                                       long stateNodeId)
Create the evaluation state node containing the truth value state for each operator in an event expression.

Specified by:
newState in interface EvalNode
Parameters:
parentNode - is the parent evaluator node that this node indicates a change in truth value to
stateNodeNumber -
stateNodeId -
Returns:
state node containing the truth value state for the operator

getContext

public final PatternAgentInstanceContext getContext()

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