|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.pattern.EvalStateNode
com.espertech.esper.pattern.EvalEveryDistinctStateNode
public class EvalEveryDistinctStateNode
Contains the state collected by an "every" operator. The state includes handles to any sub-listeners started by the operator.
Field Summary | |
---|---|
protected MatchedEventMap |
beginState
|
protected EvalEveryDistinctNode |
everyDistinctNode
|
protected java.util.Map<EvalStateNode,java.util.Set<java.lang.Object>> |
spawnedNodes
|
Constructor Summary | |
---|---|
EvalEveryDistinctStateNode(Evaluator parentNode,
EvalEveryDistinctNode everyDistinctNode)
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
accept(EvalStateNodeVisitor visitor,
java.lang.Object data)
Accept a visitor. |
java.lang.Object |
childrenAccept(EvalStateNodeVisitor visitor,
java.lang.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. |
EvalNode |
getFactoryNode()
Returns the factory node for the state node. |
boolean |
isFilterChildNonQuitting()
|
boolean |
isFilterStateNode()
|
boolean |
isNotOperator()
|
void |
quit()
Stops the event expression or an instance of it. |
void |
start(MatchedEventMap beginState)
Starts the event expression or an instance of it. |
java.lang.String |
toString()
|
Methods inherited from class com.espertech.esper.pattern.EvalStateNode |
---|
getParentEvaluator, setParentEvaluator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final EvalEveryDistinctNode everyDistinctNode
protected final java.util.Map<EvalStateNode,java.util.Set<java.lang.Object>> spawnedNodes
protected MatchedEventMap beginState
Constructor Detail |
---|
public EvalEveryDistinctStateNode(Evaluator parentNode, EvalEveryDistinctNode everyDistinctNode)
parentNode
- is the parent evaluator to call to indicate truth valueeveryDistinctNode
- is the factory node associated to the stateMethod Detail |
---|
public EvalNode getFactoryNode()
EvalStateNode
getFactoryNode
in class EvalStateNode
public final void start(MatchedEventMap beginState)
EvalStateNode
start
in class EvalStateNode
public final void evaluateFalse(EvalStateNode fromNode)
Evaluator
evaluateFalse
in interface Evaluator
fromNode
- is the node that indicates the changepublic 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 quit()
EvalStateNode
quit
in class EvalStateNode
public final java.lang.Object accept(EvalStateNodeVisitor visitor, java.lang.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 java.lang.Object childrenAccept(EvalStateNodeVisitor visitor, java.lang.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 boolean isFilterStateNode()
isFilterStateNode
in class EvalStateNode
public boolean isNotOperator()
isNotOperator
in class EvalStateNode
public boolean isFilterChildNonQuitting()
isFilterChildNonQuitting
in interface Evaluator
public final java.lang.String toString()
toString
in class java.lang.Object
|
© 2006-2011 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 |