Hi everyone
 
I am new to Jess and appreciate your help with my question. Suppose I have
the following interface :
 
 
(defglobal ?*frame* = (new JFrame "Medical Diagnostics"))
(defglobal ?*qfield* = (new JTextArea 5 40))
(defglobal ?*apanel* = (new JPanel))
(defglobal ?*afield* = (new JTextField 40))
(defglobal ?*afield-ok* = (new JButton OK))
 
 
And I also have a rule-based small medical diagnosis application which has
the following rules:
 
;; Choice no is taken from the first menu displayed to the user - which
specialist he wishes to consult ?

(defrule D1 
(Choice 1)
=>
(printout t "do have symptom a ?" crlf)
;; if statement to check for yes or no , if yes symptom will be asserted as
in next line
(assert (Sym a))
)
(defrule D1 
(Choice 1) (Sym a)
=>
(printout t "do have symptom b ?" crlf)
;; if statement to check for yes or no , if yes symptom will be asserted as
in next line
(assert (Sym b)) )
 
(defrule C1 
(Choice 2)
=>
(printout t "do have symptom g ?" crlf)
;; if statement to check for yes or no , if yes symptom will be asserted as
in next line
(assert (Sym g)) )
 
(defrule C1 
(Choice 2) (Sym g)
=>
(printout t "do have symptom h ?" crlf)
;; if statement to check for yes or no , if yes symptom will be asserted as
in next line
(assert (Sym h)) )
 
 
Could you tell me how it is possible to display my rule questions in the
qfield one by one ? Ofcourse those that become activated in the agenda, as
they will be activated by different facts entered.
 
I will be gathering the response from *afield*.
 
 
Thank you
Joanne

-- 
View this message in context: 
http://www.nabble.com/Binding-Rules-and-text-boxes-tf2807462.html#a7833009
Sent from the Jess mailing list archive at Nabble.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]
--------------------------------------------------------------------

Reply via email to