Hi *.* !
I have decided to realize my fact ordering in a more "AI-like" way using
several order facts without playing around with numbers or the like.
example:
facts:
(fact (name fact2) (...))
(fact (name fact1) (...))
(fact (name fact3) (...))
order facts:
(order fact2 fact3)
(order fact1 fact2)
My idea was now that a simple rule could handle the ordering in that way:
...
?order <- (order ?name ?)
(not (order ? ?name))
?fact <- (fact (name ?name) (...))
=>
(rectract ?order)
(rectract ?fact)
...
The rule takes the first fact and retracts it and the order fact.
Now the second fact becomes the first fact in the sense of the rule.
But... it never fires more than once.
Could anyone explain me why ?
I suspect that the not-modificator sabotages my attempt in some way.
thanx in advance
CU
Norman
