Exemple #1
0
 private Rule(Conclusion conclusion, Dictionary <string, List <Rule> > RuleLists)
 {
     this.conclusion = conclusion;
     if (this.RuleList is null)
     {
         RuleList = new List <Rule>();
         RuleLists.Add(conclusion.ToString(), RuleList);
     }
     RuleList.Add(this);
     this.RuleLists = RuleLists;
 }
Exemple #2
0
 public Rule(Premise premise, Conclusion conclusion, Dictionary <string, List <Rule> > RuleLists) : this(conclusion, RuleLists)
 {
     this.premises.Add(premise);
 }
Exemple #3
0
 public Rule(List <Premise> premises, Conclusion conclusion, Dictionary <string, List <Rule> > RuleLists) : this(conclusion, RuleLists)
 {
     this.premises = premises;
 }