File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Java Products and Servers and the fly likes wrting Rules with JESS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "wrting Rules with JESS" Watch "wrting Rules with JESS" New topic

wrting Rules with JESS

baratli ahmed

Joined: Apr 05, 2011
Posts: 1
im making a diagnosis expert system for general diseases, i strated working with NETBEANS
i already dowloaded the book (Jess in action) and read most of it, somehow the system kept confusing the rules.
this is the code :
engine.executeCommand ("(defrule conjonctivite-virale(and(rougeur)(démongeaison)(sensation-de-sable)(croutes-paupière)(sensation-brulure)(ecoulement-aqueux)(photobie)) => (store disease conjonctivite-virale ))");
engine.executeCommand ("(defrule conjonctivite-bactérienne(and(rougeur)(sécrétion-jaunatre)(démongeaison)(sensation-de-sable)(croutes-paupière)(sensation-brulure)(écoulment-épais)(yeux-collés)(flou)) => (store disease conjonctivite-bactérienne))");
engine.executeCommand ("(defrule baisse-visuelle (and (difficulté-vue)(douleur)) => (store disease baisse-visuelle))");
engine.executeCommand ("(defrule voir-médcin(and(rougeur)(démangeaisons)(sensation-de-sable)(croutes-paupière)(sensation-brulure )(ecoulement-aqueux) (photobie)(ecoulement-épais)(yeux-collés)(flou)(difficulté-vue))=> (store disease voir-médecin ))");
engine.executeCommand ("(defrule orgelet (and(rougeur)(douleur)(flou)(larmoiment)) => (store disease orgelet))");
please help
I agree. Here's the link:
subject: wrting Rules with JESS
It's not a secret anymore!