(defrule open-door
(Door {state == "closed"} (OBJECT ?door))
=>
(?door setState "open"))
On Nov 17, 2008, at 5:33 AM, John Chrysakis wrote:
Hello to jess community,
I am having a question.
Till now I have used shadow facts through jess api to develop a rule
base system. In eaSrch defrule where I need one slot the corresponding
getXXX method was called to retrieve its value. e.g getstate() for
the slot state.
Example of defrule: (Door {state == "closed"}) => ...
Now I need to set the slot from a defule. How Can I Do that?
I have a setstate method but how should I write the rule?
thanks in advance!
John CH.
--------------------------------------------------------------------
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]
.
--------------------------------------------------------------------
---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences, Sandia National Laboratories
PO Box 969, MS 9012, Livermore, CA 94550
http://www.jessrules.com
--------------------------------------------------------------------
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]
--------------------------------------------------------------------