/// <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; }
public AndQuery(KBQuery q1, KBQuery q2) { query1 = q1; query2 = q2; state = State.Reset; }