Esempio n. 1
0
 public RuleRepository GetRuleRepository()
 {
     this.ruleRepository = new RuleRepository();
     LoadXmlDocument("Rules.xml");
     LoadRulesFromXML();
     return(ruleRepository);
 }
Esempio n. 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.";
 }
Esempio n. 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();
 }
Esempio n. 4
0
 public RuleParser(string path)
 {
     RuleRepository = new RuleRepository();
     LoadXMLDocument(path);
 }