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