Example #1
0
 private bool HasRightFacts(IExecutionContext context, TupleFactSet set)
 {
     foreach (var fact in set.Facts)
     {
         if (MatchesConditions(context, set.Tuple, fact))
         {
             return(true);
         }
     }
     return(false);
 }
Example #2
0
        private List <Fact> GetMatchingFacts(IExecutionContext context, TupleFactSet set)
        {
            var matchingFacts = new List <Fact>();

            foreach (var fact in set.Facts)
            {
                if (MatchesConditions(context, set.Tuple, fact))
                {
                    matchingFacts.Add(fact);
                }
            }
            return(matchingFacts);
        }