Production rules typically use "slotted terms" which in Jess must be
declared using deftemplate (or you can use a java bean)
then you can assert such facts using
(assert (link (x1 ?value-of-x1) (y1 ?value-of-y1) (x2 ?value-of-x1) (y2
?value-of-y2))
and similarly for use as a pattern in a rule (omit the surrounding
assert).
With slotted terms, the (x1 ?value-of-x1) forms are slots. I.e. "x1" is
not a functor, it is a slot name. The "?value-of-x1" is a variable (or
it could be a constant) but it cannot be a term.
levent kent wrote:
Hmm, thanks.It was very explanatory that Jess does not work like prolog
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------