It's not a secret anymore!*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "wrting Rules with JESS" Watch "wrting Rules with JESS" New topic
Author

wrting Rules with JESS

baratli ahmed
Greenhorn

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: wrting Rules with JESS
 
Similar Threads
rules and querys
Returning A List Of Variables From A Folder Of Documents And Returning Them Into A New Document
doble condition with ternary operator
help with writing a Jess rule?
to print a page