I think Venkatesh Mahadevan wrote:
> 
> I want to write a defrule which says that
> 
>  if automobile.make=chrysler then
>         call match()


(defrule my-rule
  (automobile (make Chrysler))
  =>
  (match))

> 
> How does one write this rule and fire it (from commandline as well as from 
> Java
> code)

Rules fire when you type (run) (at the command line) or call the run()
method of the Rete class.


---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to