• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

wrting Rules with JESS

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic