Instance Method

add(_:)

Adds the specified list of rules to the system.

Declaration

func add(_ rules: [GKRule])

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

var rules: [GKRule]

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

func add(GKRule)

Adds the specified rule to the system.

func removeAllRules()

Removes all rules from the system.