public override void RemoveMatch(ISet <EventBean> matchEvent) { if (PatternConsumptionUtil.ContainsEvent(matchEvent, _eventObserver.BeginState)) { Quit(); ParentEvaluator.EvaluateFalse(this, true); } }
public override void RemoveMatch(ISet <EventBean> matchEvent) { if (PatternConsumptionUtil.ContainsEvent(matchEvent, BeginState)) { Quit(); ParentEvaluator.EvaluateFalse(this, true); } else { PatternConsumptionUtil.ChildNodeRemoveMatches(matchEvent, SpawnedNodes.Keys); } }
public override void RemoveMatch(ISet <EventBean> matchEvent) { if (!IsStarted) { return; } if (PatternConsumptionUtil.ContainsEvent(matchEvent, BeginState)) { Quit(); ParentEvaluator.EvaluateFalse(this, true); } }
public override void RemoveMatch(ISet <EventBean> matchEvent) { if (PatternConsumptionUtil.ContainsEvent(matchEvent, _beginState)) { Quit(); ParentEvaluator.EvaluateFalse(this, true); } else { if (_activeChildNode != null) { _activeChildNode.RemoveMatch(matchEvent); } } }
public override void RemoveMatch(ISet <EventBean> matchEvent) { bool quit = false; if (EventsPerChild != null) { foreach (Object entry in EventsPerChild) { if (entry is MatchedEventMap) { quit = PatternConsumptionUtil.ContainsEvent(matchEvent, (MatchedEventMap)entry); } else if (entry != null) { var list = (IList <MatchedEventMap>)entry; foreach (MatchedEventMap map in list) { quit = PatternConsumptionUtil.ContainsEvent(matchEvent, map); if (quit) { break; } } } if (quit) { break; } } } if (!quit && ActiveChildNodes != null) { foreach (EvalStateNode child in ActiveChildNodes) { if (child != null) { child.RemoveMatch(matchEvent); } } } if (quit) { Quit(); ParentEvaluator.EvaluateFalse(this, true); } }
public override void RemoveMatch(ISet <EventBean> matchEvent) { bool quit = PatternConsumptionUtil.ContainsEvent(matchEvent, _beginState); if (!quit) { foreach (List <EventBean> list in _matchedEventArrays) { if (list == null) { continue; } foreach (EventBean @event in list) { if (matchEvent.Contains(@event)) { quit = true; break; } } if (quit) { break; } } } if (quit) { Quit(); ParentEvaluator.EvaluateFalse(this, true); } else { if (_stateMatcher != null) { _stateMatcher.RemoveMatch(matchEvent); } if (_stateUntil != null) { _stateUntil.RemoveMatch(matchEvent); } } }