Beispiel #1
0
 public RuleRepository GetRuleRepository()
 {
     this.ruleRepository = new RuleRepository();
     LoadXmlDocument("Rules.xml");
     LoadRulesFromXML();
     return(ruleRepository);
 }
Beispiel #2
0
 public ESProvider(FactParser factParser, RuleParser ruleParser)
 {
     FactParser     = factParser;
     RuleParser     = ruleParser;
     FactRepository = FactParser.FactRepository;
     RuleRepository = RuleParser.RuleRepository;
     Answers        = new Dictionary <string, bool>();
     errorMessage   = "shit happens.";
 }
Beispiel #3
0
 public ESProvider(FactParser factParser, RuleParser ruleParser)
 {
     factRepo        = factParser.GetFactRepository();
     ruleRepo        = ruleParser.GetRuleRepository();
     this.factParser = factParser;
     this.ruleParser = ruleParser;
     myenumrule      = ruleRepo.GetEnumerator();
     myenumfact      = factRepo.GetEnumerator();
 }
Beispiel #4
0
 public RuleParser(string path)
 {
     RuleRepository = new RuleRepository();
     LoadXMLDocument(path);
 }