Instance Method

addRulesFromArray:

Adds the specified list of rules to the system.

Declaration

- (void)addRulesFromArray:(NSArray<GKRule *> *)rules;

Parameters

rules

An array of rule objects.

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 added to the agenda in the order of the specified array.

See Also

Managing a System’s List of Rules

rules

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

- addRule:

Adds the specified rule to the system.

- removeAllRules

Removes all rules from the system.