Instance Property

agenda

The list of rules to be considered when evaluating the system.

Declaration

var agenda: [GKRule] { get }

Discussion

The agenda holds the rules to be considered when evaluating the system, listed in order of their salience values (or, for rules with the same salience, the order in which they were added to the system). During evaluation of the rule system, if a rule on the agenda list is satisfied—that is, its predicate returns true and it executes its action—the system moves that rule to the executed list.

Changing the salience of a rule already in the rule system does not adjust its position in the agenda, but does determine the order of the new agenda when resetting the system.

See Also

Evaluating a Rule System

func evaluate()

Evaluates the rule system, executing the list of rules in its agenda.

var executed: [GKRule]

The list of rules whose actions have been performed during evaluation of the system.

func reset()

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