JESS Gang,
We just started fooling around with JESS, and have the following
questions/comments:
1) Why must all "list" facts be ordered? It would be nice to assert
something like (shopping-list bread milk paper-towels), and then have this
fact match a (shopping-list milk bread paper-towels) pattern in some rule.
I guess you have to use a multislot in a deftemplate to implement a true
set, but you still have to do some pretty scary stuff in your pattern
matching.
2) Is there any way to do an "un-deffacts" (retract-deffacts?) whose effect
will persist across a (reset)?
3) Can anyone shed more light on the Boolean console parm in
rete.addInputRouter()? The description in the JESS manual confused me.
4) Is there any way to create "record structured" variables whose values
will persist across a (reset)? I need something that a) has slots like a
deftemplate, b) will let me change the slot values, and c) will maintain
those changes across (reset) calls. I'd like to avoid resorting to
defclass/definstance, but that seems like the only way to do this.
5) Apparently, I can't use an expression with the test function. For example,
the following is legal:
(defrule works
(test (> 2 1))
=>
(assert (this works)))
However, the following is illegal:
(defrule fails
(test (and (> 2 1) (> 3 2)))
=>
(assert (this fails)))
Thanks for the help!
- Chris
------------------------------------
Chris Schneider
ThinkerTools Research Group
http://thinkertools.berkeley.edu/tt/
[EMAIL PROTECTED]
(510) 873-8125
------------------------------------
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------