public class EvalMatchUntilStateNode extends EvalStateNode implements Evaluator
Modifier and Type | Field and Description |
---|---|
protected MatchedEventMap |
beginState |
protected EvalMatchUntilNode |
evalMatchUntilNode |
protected Integer |
lowerbounds |
protected ArrayList<EventBean>[] |
matchedEventArrays |
protected int |
numMatches |
protected EvalStateNode |
stateMatcher |
protected EvalStateNode |
stateUntil |
protected Integer |
upperbounds |
Constructor and Description |
---|
EvalMatchUntilStateNode(Evaluator parentNode,
EvalMatchUntilNode evalMatchUntilNode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(EvalStateNodeVisitor visitor)
Accept a visitor.
|
static MatchedEventMap |
consolidate(MatchedEventMap beginState,
ArrayList<EventBean>[] matchedEventList,
int[] tagsArrayed) |
void |
evaluateFalse(EvalStateNode fromNode,
boolean restartable)
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() |
boolean |
isObserverStateNodeNonRestarting() |
void |
quit()
Stops the event expression or an instance of it.
|
void |
removeMatch(Set<EventBean> matchEvent)
Remove matches that overlap with the provided events.
|
void |
start(MatchedEventMap beginState)
Starts the event expression or an instance of it.
|
String |
toString() |
getParentEvaluator, setParentEvaluator
protected final EvalMatchUntilNode evalMatchUntilNode
protected MatchedEventMap beginState
protected EvalStateNode stateMatcher
protected EvalStateNode stateUntil
protected int numMatches
protected Integer lowerbounds
protected Integer upperbounds
public EvalMatchUntilStateNode(Evaluator parentNode, EvalMatchUntilNode evalMatchUntilNode)
parentNode
- is the parent evaluator to call to indicate truth valueevalMatchUntilNode
- is the factory node associated to the statepublic void removeMatch(Set<EventBean> matchEvent)
EvalStateNode
removeMatch
in class EvalStateNode
matchEvent
- set of events to check forpublic EvalNode getFactoryNode()
EvalStateNode
getFactoryNode
in class EvalStateNode
public final void start(MatchedEventMap beginState)
EvalStateNode
start
in class EvalStateNode
beginState
- begin statepublic 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 static MatchedEventMap consolidate(MatchedEventMap beginState, ArrayList<EventBean>[] matchedEventList, int[] tagsArrayed)
public final void evaluateFalse(EvalStateNode fromNode, boolean restartable)
Evaluator
evaluateFalse
in interface Evaluator
fromNode
- is the node that indicates the changerestartable
- whether the evaluator can be restartedpublic 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 boolean isFilterChildNonQuitting()
isFilterChildNonQuitting
in interface Evaluator
public boolean isObserverStateNodeNonRestarting()
isObserverStateNodeNonRestarting
in class EvalStateNode