:ADD-RELATION-RULE

This command is not yet implemented.

Purpose

Creates a new rule that fires when a specified relation (also called a slot or property) is queried or modified.

Parameters

relation
The relation that the rule(s) are associated with.
rule*
The backward or forward chaining rules to be associated with the relation.

Examples

  (:ADD-RELATION-RULE engine ((engine ?truck ?engine)
                              (size   ?engine ?engine-size)
                              (:test (:LISP (> ?engine-size 400)))
                              ->
                              (wheel ?truck wheel)
                              (size  wheel  "P195/65R15")))

Success criteria

Succeeds if the rule is successfully created.

Failure criteria

Fails if the rule can not be created.

Notes

The relation associated with the rule must already exist when this command is executed.

Related commands


Back to...

Algernon commands
Algernon Documentation Central
Algernon home page