Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wrting Rules with JESS

 
baratli ahmed
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic