예제 #1
0
파일: Rule.cs 프로젝트: jcc333/TinyPraxis
 /// <summary>
 /// A rule that runs action for each match to the preconditions
 /// </summary>
 /// <param name="name">Name for debugging purposes</param>
 /// <param name="preconditions">Antecedents for the rule</param>
 /// <param name="action">Code to run when the rule matches the database</param>
 public Rule(string name, KBQuery preconditions, Action action)
 {
     this.Name = name;
     this.preconditions = preconditions;
     this.action = action;
 }
예제 #2
0
 public AndQuery(KBQuery q1, KBQuery q2)
 {
     query1 = q1;
     query2 = q2;
     state  = State.Reset;
 }
예제 #3
0
 public AndQuery(KBQuery q1, KBQuery q2)
 {
     query1 = q1;
     query2 = q2;
     state = State.Reset;
 }
예제 #4
0
파일: Rule.cs 프로젝트: jcc333/TinyPraxis
 /// <summary>
 /// A rule that runs action for each match to the preconditions
 /// </summary>
 /// <param name="name">Name for debugging purposes</param>
 /// <param name="preconditions">Antecedents for the rule</param>
 /// <param name="action">Code to run when the rule matches the database</param>
 public Rule(string name, KBQuery preconditions, Action action)
 {
     this.Name          = name;
     this.preconditions = preconditions;
     this.action        = action;
 }