/// <summary> When Clear is called, the module needs to Clear all the internal lists /// for rules and activations. The handle to Rete should not be nulled. /// </summary> public virtual void clear() { activations.clear(); IEnumerator itr = rules.Values.GetEnumerator(); while (itr.MoveNext()) { Defrule rl = (Defrule)itr.Current; rl.clear(); } rules.Clear(); deftemplates.Clear(); }