Contents

reset()

Returns the rule system to its original agenda and clears all facts.

Declaration

func reset()

Discussion

Calling this method restarts the evaluation process: the system removes all rules from the current agenda and executed lists and empties the facts set. (However, the rule’s state dictionary is left unchanged.) The system then automatically repopulates its agenda according to the salience of each rule in the rules array.

See Also

Evaluating a Rule System