public class EvalObserverStateNode extends EvalStateNode implements ObserverEventEvaluator
Constructor and Description |
---|
EvalObserverStateNode(Evaluator parentNode,
EvalObserverNode evalObserverNode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(EvalStateNodeVisitor visitor)
Accept a visitor.
|
PatternAgentInstanceContext |
getContext() |
EvalNode |
getFactoryNode()
Returns the factory node for the state node.
|
boolean |
isFilterStateNode() |
boolean |
isNotOperator() |
void |
observerEvaluateFalse()
Indicate that the observer turned permanently false.
|
void |
observerEvaluateTrue(MatchedEventMap matchEvent)
Indicate an event for evaluation (sub-expression the observer represents has turned true).
|
void |
quit()
Stops the event expression or an instance of it.
|
void |
removeMatch(java.util.Set<EventBean> matchEvent)
Remove matches that overlap with the provided events.
|
void |
start(MatchedEventMap beginState)
Starts the event expression or an instance of it.
|
java.lang.String |
toString() |
getParentEvaluator, setParentEvaluator
public EvalObserverStateNode(Evaluator parentNode, EvalObserverNode evalObserverNode)
parentNode
- is the parent evaluator to call to indicate truth valueevalObserverNode
- is the factory node associated to the statepublic void removeMatch(java.util.Set<EventBean> matchEvent)
EvalStateNode
removeMatch
in class EvalStateNode
matchEvent
- set of events to check forpublic EvalNode getFactoryNode()
EvalStateNode
getFactoryNode
in class EvalStateNode
public PatternAgentInstanceContext getContext()
getContext
in interface ObserverEventEvaluator
public void observerEvaluateTrue(MatchedEventMap matchEvent)
ObserverEventEvaluator
observerEvaluateTrue
in interface ObserverEventEvaluator
matchEvent
- is the matched events so farpublic void observerEvaluateFalse()
ObserverEventEvaluator
observerEvaluateFalse
in interface ObserverEventEvaluator
public void start(MatchedEventMap beginState)
EvalStateNode
start
in class EvalStateNode
public final void quit()
EvalStateNode
quit
in class EvalStateNode
public final void accept(EvalStateNodeVisitor visitor)
EvalStateNode
accept
in class EvalStateNode
visitor
- on which the visit method is invoked by each nodepublic boolean isNotOperator()
isNotOperator
in class EvalStateNode
public boolean isFilterStateNode()
isFilterStateNode
in class EvalStateNode
public final java.lang.String toString()
toString
in class java.lang.Object