Instance Method

addRule:

Adds the specified rule to the system.

Declaration

- (void)addRule:(GKRule *)rule;

Parameters

rule

A rule object.

Discussion

Adding rules to the system also adds them to the agenda list, in decreasing order of the rules’ salience values. Rules with the same salience are listed in the agenda in the order in which they were added to the system.

See Also

Managing a System’s List of Rules

rules

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

- addRulesFromArray:

Adds the specified list of rules to the system.

- removeAllRules

Removes all rules from the system.