public override void RemoveMatch(ISet <EventBean> matchEvent)
 {
     if (PatternConsumptionUtil.ContainsEvent(matchEvent, _eventObserver.BeginState))
     {
         Quit();
         ParentEvaluator.EvaluateFalse(this, true);
     }
 }
Esempio n. 2
0
 public override void RemoveMatch(ISet <EventBean> matchEvent)
 {
     if (PatternConsumptionUtil.ContainsEvent(matchEvent, BeginState))
     {
         Quit();
         ParentEvaluator.EvaluateFalse(this, true);
     }
     else
     {
         PatternConsumptionUtil.ChildNodeRemoveMatches(matchEvent, SpawnedNodes.Keys);
     }
 }
Esempio n. 3
0
 public override void RemoveMatch(ISet <EventBean> matchEvent)
 {
     if (!IsStarted)
     {
         return;
     }
     if (PatternConsumptionUtil.ContainsEvent(matchEvent, BeginState))
     {
         Quit();
         ParentEvaluator.EvaluateFalse(this, true);
     }
 }
Esempio n. 4
0
 public override void RemoveMatch(ISet <EventBean> matchEvent)
 {
     if (PatternConsumptionUtil.ContainsEvent(matchEvent, _beginState))
     {
         Quit();
         ParentEvaluator.EvaluateFalse(this, true);
     }
     else
     {
         if (_activeChildNode != null)
         {
             _activeChildNode.RemoveMatch(matchEvent);
         }
     }
 }
Esempio n. 5
0
        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);
            }
        }
Esempio n. 6
0
        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);
                }
            }
        }
Esempio n. 7
0
 public override void RemoveMatch(ISet <EventBean> matchEvent)
 {
     PatternConsumptionUtil.ChildNodeRemoveMatches(matchEvent, Nodes.Keys);
 }