|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.pattern.EvalStateNode
net.esper.pattern.EvalRootStateNode
public final class EvalRootStateNode
This class is always the root node in the evaluation state tree representing any activated event expression. It hold the handle to a further state node with subnodes making up a whole evaluation state tree.
Constructor Summary | |
---|---|
EvalRootStateNode(EvalNode rootSingleChildNode,
MatchedEventMap beginState,
PatternContext context)
Constructor. |
Method Summary | |
---|---|
Object |
accept(EvalStateNodeVisitor visitor,
Object data)
Accept a visitor. |
Object |
childrenAccept(EvalStateNodeVisitor visitor,
Object data)
Pass the visitor to all child nodes. |
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. |
void |
quit()
Stops the event expression or an instance of it. |
void |
setCallback(PatternMatchCallback callback)
Hands the callback to use to indicate matching events. |
void |
start()
Starts the event expression or an instance of it. |
void |
stop()
Stops the underlying resources. |
String |
toString()
|
Methods inherited from class net.esper.pattern.EvalStateNode |
---|
getFactoryNode, getParentEvaluator, getStateObjectId, setParentEvaluator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EvalRootStateNode(EvalNode rootSingleChildNode, MatchedEventMap beginState, PatternContext context)
rootSingleChildNode
- is the root nodes single child nodebeginState
- contains the events that make up prior matchescontext
- contains handles to services requiredMethod Detail |
---|
public final void setCallback(PatternMatchCallback callback)
setCallback
in interface EvalRootState
callback
- is invoked when the event expressions turns true.public final void start()
EvalStateNode
start
in class EvalStateNode
public final void stop()
StopCallback
stop
in interface StopCallback
public final void quit()
EvalStateNode
quit
in class EvalStateNode
public final void evaluateTrue(MatchedEventMap matchEvent, EvalStateNode fromNode, boolean isQuitted)
Evaluator
evaluateTrue
in interface Evaluator
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 listeningpublic final void evaluateFalse(EvalStateNode fromNode)
Evaluator
evaluateFalse
in interface Evaluator
fromNode
- is the node that indicates the changepublic final Object accept(EvalStateNodeVisitor visitor, Object data)
EvalStateNode
accept
in class EvalStateNode
visitor
- on which the visit method is invoked by each nodedata
- any additional data the visitor may need is passed in this parameter
public final Object childrenAccept(EvalStateNodeVisitor visitor, Object data)
EvalStateNode
childrenAccept
in class EvalStateNode
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 String toString()
toString
in class Object
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |