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; }
public Rule(Premise premise, Conclusion conclusion, Dictionary <string, List <Rule> > RuleLists) : this(conclusion, RuleLists) { this.premises.Add(premise); }
public Rule(List <Premise> premises, Conclusion conclusion, Dictionary <string, List <Rule> > RuleLists) : this(conclusion, RuleLists) { this.premises = premises; }