示例#1
0
 public IGambitRule <TKnowledgeBase> CreateRule <TKnowledgeBase>(
     string name,
     IGambitRuleCondition <TKnowledgeBase> condition,
     IGambitRuleAction <TKnowledgeBase> action)
 {
     return(new GambitRule <TKnowledgeBase>(name, condition, action));
 }
示例#2
0
 public GambitRule(
     string name,
     IGambitRuleCondition <TKnowledgeBase> condition,
     IGambitRuleAction <TKnowledgeBase> action)
 {
     this.Name      = name;
     this.condition = condition;
     this.action    = action;
 }
示例#3
0
 public IGambitRule <TKnowledgeBase> CreateRule(string name, IGambitRuleCondition <TKnowledgeBase> condition, IGambitRuleAction <TKnowledgeBase> action)
 {
     return(ruleGenerator.CreateRule(name, condition, action));
 }