Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 public AndQuery(KBQuery q1, KBQuery q2)
 {
     query1 = q1;
     query2 = q2;
     state  = State.Reset;
 }
Ejemplo n.º 3
0
 public AndQuery(KBQuery q1, KBQuery q2)
 {
     query1 = q1;
     query2 = q2;
     state = State.Reset;
 }
Ejemplo n.º 4
0
 /// <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;
 }