com.espertech.esper.pattern
Class EvalNodeFactoryBase

java.lang.Object
  extended by com.espertech.esper.pattern.EvalNodeFactoryBase
All Implemented Interfaces:
EvalFactoryNode, java.io.Serializable
Direct Known Subclasses:
EvalAndFactoryNode, EvalAuditFactoryNode, EvalEveryDistinctFactoryNode, EvalEveryFactoryNode, EvalFilterFactoryNode, EvalFollowedByFactoryNode, EvalGuardFactoryNode, EvalMatchUntilFactoryNode, EvalNotFactoryNode, EvalObserverFactoryNode, EvalOrFactoryNode, EvalRootFactoryNode

public abstract class EvalNodeFactoryBase
extends java.lang.Object
implements EvalFactoryNode, java.io.Serializable

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.

See Also:
Serialized Form

Method Summary
 void addChildNode(EvalFactoryNode childNode)
          Adds a child node.
 void addChildNodes(java.util.List<EvalFactoryNode> childNodesToAdd)
           
 java.util.List<EvalFactoryNode> getChildNodes()
          Returns list of child nodes.
 short getFactoryNodeId()
           
abstract  EvalNode makeEvalNode(PatternAgentInstanceContext agentInstanceContext)
           
 void setFactoryNodeId(short factoryNodeId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.espertech.esper.pattern.EvalFactoryNode
isFilterChildNonQuitting, isStateful
 

Method Detail

makeEvalNode

public abstract EvalNode makeEvalNode(PatternAgentInstanceContext agentInstanceContext)
Specified by:
makeEvalNode in interface EvalFactoryNode

addChildNode

public void addChildNode(EvalFactoryNode childNode)
Adds a child node.

Specified by:
addChildNode in interface EvalFactoryNode
Parameters:
childNode - is the child evaluation tree node to add

addChildNodes

public void addChildNodes(java.util.List<EvalFactoryNode> childNodesToAdd)
Specified by:
addChildNodes in interface EvalFactoryNode

getChildNodes

public java.util.List<EvalFactoryNode> getChildNodes()
Returns list of child nodes.

Specified by:
getChildNodes in interface EvalFactoryNode
Returns:
list of child nodes

getFactoryNodeId

public short getFactoryNodeId()
Specified by:
getFactoryNodeId in interface EvalFactoryNode

setFactoryNodeId

public void setFactoryNodeId(short factoryNodeId)
Specified by:
setFactoryNodeId in interface EvalFactoryNode

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