|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.pattern.EvalStateNode
public abstract class EvalStateNode
Superclass of all state nodes in an evaluation node tree representing an event expressions. Follows the Composite pattern. Subclasses are expected to keep their own collection containing child nodes as needed.
Constructor Summary | |
---|---|
EvalStateNode(EvalNode factoryNode,
Evaluator parentNode,
Object stateObjectId)
Constructor. |
Method Summary | |
---|---|
abstract Object |
accept(EvalStateNodeVisitor visitor,
Object data)
Accept a visitor. |
abstract Object |
childrenAccept(EvalStateNodeVisitor visitor,
Object data)
Pass the visitor to all child nodes. |
EvalNode |
getFactoryNode()
Returns the factory node for the state node. |
Evaluator |
getParentEvaluator()
Returns the parent evaluator. |
Object |
getStateObjectId()
Returns the state nodes object id. |
abstract void |
quit()
Stops the event expression or an instance of it. |
void |
setParentEvaluator(Evaluator parentEvaluator)
Sets the parent evaluator. |
abstract void |
start()
Starts the event expression or an instance of it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EvalStateNode(EvalNode factoryNode, Evaluator parentNode, Object stateObjectId)
parentNode
- is the evaluator for this node on which to indicate a change in truth valuefactoryNode
- is the factory node creating the state instancestateObjectId
- is the state object id assigned to state nodeMethod Detail |
---|
public abstract void start()
public abstract void quit()
public abstract Object accept(EvalStateNodeVisitor visitor, Object data)
visitor
- on which the visit method is invoked by each nodedata
- any additional data the visitor may need is passed in this parameter
public abstract Object childrenAccept(EvalStateNodeVisitor visitor, Object data)
visitor
- is the instance to be passed to all child nodesdata
- any additional data the visitor may need is passed in this parameter
public final Evaluator getParentEvaluator()
public Object getStateObjectId()
public EvalNode getFactoryNode()
public final void setParentEvaluator(Evaluator parentEvaluator)
parentEvaluator
- for this node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |