/// <summary> /// Set the rule currently being tried by the goal at the top of the stack. /// </summary> /// <param name="rule">the new rule.</param> public void SetCurrentRule(KnowledgeBaseEntry rule) { goalStackCurrentRules[CurrentFrame] = rule; }