private bool HasRightFacts(IExecutionContext context, TupleFactSet set) { foreach (var fact in set.Facts) { if (MatchesConditions(context, set.Tuple, fact)) { return(true); } } return(false); }
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); }