srmerl1n.es.Project6x&IstateLmodulestLjava/util/Vector;L variablestLjava/util/Hashtable;xpsrjava.util.Vectorٗ}[;IcapacityIncrementI elementCount[ elementDatat[Ljava/lang/Object;xpur[Ljava.lang.Object;Xs)lxp srmerl1n.es.ModuleџșZLnametLjava/lang/String;LrulestLmerl1n/tool/SortedVector;Lsourceq~ L variablesq~xpt Diagnosissrmerl1n.es.Module$1{W:dLthis$0tLmerl1n/es/Module;xrmerl1n.tool.SortedVector>cj QL expressiontLmerl1n/es/TextNode;xrmerl1n.es.AssignmentLvariabletLmerl1n/es/Variable;xrmerl1n.es.ActionŽ?xpsrmerl1n.es.TextVariabledN"bxrmerl1n.es.Variable̪kLinitialtLjava/lang/Object;Llabelq~ Lrangeq~Lvalueq~ xptpsq~uq~ tNormalt IncreasedtHighpppppppxt Increasedsrmerl1n.es.TextNode+T `|txrmerl1n.es.TreeNodeNGIoperatorLchildrenq~xpsq~uq~ srmerl1n.es.LiteralNode+Hc"]Lvalueq~ xq~*sq~uq~ ppppppppppxtNormalpppppppppxpppppppppxsrmerl1n.es.Condition}sLroottLmerl1n/es/BooleanNode;xpsrmerl1n.es.BooleanNodeݔ` Txq~*sq~uq~ srmerl1n.es.AndNode>Mxq~*sq~uq~ srmerl1n.es.EqualityNodeqf#xq~*sq~uq~ srmerl1n.es.RelationalNode֪xq~*sq~uq~ srmerl1n.es.AdditiveNodev4+9zxq~*sq~uq~ srmerl1n.es.MultiplicativeNodeB&2xq~*sq~uq~ srmerl1n.es.UnaryNode,dmYKGxq~*sq~uq~ srmerl1n.es.IdentifierNodea/1Lnameq~ L variablesq~xq~*sq~uq~ ppppppppppxt temperaturesrjava.util.Hashtable%!JF loadFactorI thresholdxp?@w t treatmentsq~tSuggested medicamentppq~[tdeseasesq~tHealthypsq~uq~ tHealthytColdtFlut Pneumoniappppppxt Pneumoniat medicamentsq~t Vitamin Cpsq~uq~ t Vitamin CtAspirintPanadolt Antibioticsppppppxt Antibioticstcoughsrmerl1n.es.BooleanVariableEaN2xq~srjava.lang.Boolean r՜ZvaluexptCoughpsq~sttemperatureCategoryq~!t temperaturesrmerl1n.es.RealVariableVB|疇xq~srjava.lang.Floatɢ<Fvaluexrjava.lang.Number xpBtTemperature in [C]psq~{Btalergysq~qsq~stAlergy to aspirinpsq~st tirednesssq~t No or Littlet Tirednesssq~uq~ t No or LittletMediumtHugepppppppxq~tmessagesq~tPacient suffers from ppq~xpppppppppxpppppppppxpppppppppxsq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxsq~{Bpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxpppppppppxpppppppppxtnorm_temperaturesq~ sq~uq~ srmerl1n.es.Print6PnL expressionq~LprojecttLmerl1n/es/Project;xq~sq~)sq~uq~ sq~.sq~uq~ ppppppppppxt,Pacient suffers from increased temperature. pppppppppxq~srmerl1n.es.DocLink"n^xrmerl1n.es.Linksy^ Llabelq~Llocationq~Lprojectq~xq~sq~)sq~uq~ sq~.sq~uq~ ppppppppppxtSee what to do in this case...pppppppppxsq~)sq~uq~ sq~.sq~uq~ ppppppppppxtdemo/demo.htmlpppppppppxq~srmerl1n.es.NewLined}O5lLprojectq~xq~q~sq~q~!sq~)sq~uq~ sq~.sq~uq~ ppppppppppxt Increasedpppppppppxppppppxsq~3sq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxt temperatureq~Xpppppppppxpppppppppxpppppppppxsq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxsq~{Bpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxsq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxt temperatureq~Xpppppppppxpppppppppxpppppppppxsq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxsq~{Bpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxpppppppppxppppppppxpppppppppxtinc_temperaturesq~ sq~uq~ sq~sq~)sq~uq~ sq~.sq~uq~ ppppppppppxt'Pacient suffers from high temperature. pppppppppxq~sq~sq~)sq~uq~ sq~.sq~uq~ ppppppppppxtSee what to do in this case...pppppppppxsq~)sq~uq~ sq~.sq~uq~ ppppppppppxtdemo/demo.htmlpppppppppxq~sq~q~sq~q~!sq~)sq~uq~ sq~.sq~uq~ ppppppppppxtHighpppppppppxppppppxsq~3sq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxt temperatureq~Xpppppppppxpppppppppxpppppppppxsq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxsq~{Bpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxpppppppppxpppppppppxthight_temperaturesq~sq~uq~ sq~q~]sq~)sq~uq~ sq~.sq~uq~ ppppppppppxt Pneumoniapppppppppxsq~sq~)sq~uq~ sq~Rsq~uq~ ppppppppppxtmessageq~Xsq~Rsq~uq~ ppppppppppxtdeseaseq~Xppppppppxq~sq~q~srmerl1n.es.ExecN;h[L expressionq~Lprojectq~xq~sq~)sq~uq~ sq~.sq~uq~ ppppppppppxt Treatmentpppppppppxq~ppppppxsq~3sq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxttemperatureCategoryq~Xpppppppppxpppppppppxpppppppppxpppppppppxsq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxtHighpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxsq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxttemperatureCategoryq~Xpppppppppxpppppppppxpppppppppxpppppppppxsq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxt Increasedpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxpppppppppxppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxsq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxtcoughq~Xpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxsq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxt tirednessq~Xpppppppppxpppppppppxpppppppppxpppppppppxsq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxtMediumpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxsq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxt tirednessq~Xpppppppppxpppppppppxpppppppppxpppppppppxsq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxtHugepppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxpppppppppxppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxppppppppxpppppppppxt pneumoniasq~sq~uq~ sq~q~]sq~)sq~uq~ sq~.sq~uq~ ppppppppppxtFlupppppppppxsq~sq~)sq~uq~ sq~Rsq~uq~ ppppppppppxtmessageq~Xsq~Rsq~uq~ ppppppppppxtdeseaseq~Xppppppppxq~sq~q~sq~sq~)sq~uq~ sq~.sq~uq~ ppppppppppxt Treatmentpppppppppxq~ppppppxsq~3sq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxttemperatureCategoryq~Xpppppppppxpppppppppxpppppppppxpppppppppxsq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxtHighpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxsq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Nsq~uq~ sq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxtcoughq~Xpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxtflusq~sq~uq~ sq~q~]sq~)sq~uq~ sq~.sq~uq~ ppppppppppxtFlupppppppppxsq~sq~)sq~uq~ sq~Rsq~uq~ ppppppppppxtmessageq~Xsq~Rsq~uq~ ppppppppppxtdeseaseq~Xppppppppxq~sq~q~sq~sq~)sq~uq~ sq~.sq~uq~ ppppppppppxt Treatmentpppppppppxq~ppppppxsq~3sq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxttemperatureCategoryq~Xpppppppppxpppppppppxpppppppppxpppppppppxsq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxt Increasedpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxsq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxtcoughq~Xpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxsq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxt tirednessq~Xpppppppppxpppppppppxpppppppppxpppppppppxsq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxt No or Littlepppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxsq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxt tirednessq~Xpppppppppxpppppppppxpppppppppxpppppppppxsq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxtMediumpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxpppppppppxppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxppppppppxpppppppppxtcoldsq~sq~uq~ sq~sq~)sq~uq~ sq~.sq~uq~ ppppppppppxtPacient is O.K.! pppppppppxq~sq~sq~)sq~uq~ sq~.sq~uq~ ppppppppppxtIt's time to enjoy life in pppppppppxq~srmerl1n.es.ImageLink)b̅xq~sq~)sq~uq~ sq~.sq~uq~ ppppppppppxt Monte Carlopppppppppxsq~)sq~uq~ sq~.sq~uq~ ppppppppppxtdemo/Monte_Carlo.jpgpppppppppxq~sq~q~ppppppxsq~3sq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxttemperatureCategoryq~Xpppppppppxpppppppppxpppppppppxpppppppppxsq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxtNormalpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxpppppppppxthealthypppxq~ tP/* Knowledge base module definition */ ask "Temperature in [C]" real temperature := 36.5 ask "Cough" boolean cough := false ask "Tiredness" text tiredness ("No or Little","Medium","Huge") := "No or Little" text temperatureCategory ("Normal","Increased","High") text desease ("Healthy","Cold","Flu","Pneumonia") := "Healthy" text message := "Pacient suffers from " norm_temperature:10 if temperature <= 37.0 then temperatureCategory := "Normal" end inc_temperature:10 if temperature > 37.0 and temperature <= 38.0 then print "Pacient suffers from increased temperature. ", document "See what to do in this case..." at "demo/demo.html",nl, temperatureCategory := "Increased" end hight_temperature:10 if temperature > 38.0 then print "Pacient suffers from high temperature. ", document "See what to do in this case..." at "demo/demo.html",nl, temperatureCategory := "High" end pneumonia:5 if ( temperatureCategory = "High" or temperatureCategory = "Increased") and cough and (tiredness = "Medium" or tiredness = "Huge") then desease := "Pneumonia", print message + desease,nl, exec "Treatment" end flu:5 if temperatureCategory = "High" and not (cough) then desease := "Flu", print message + desease,nl, exec "Treatment" end cold:5 if temperatureCategory = "Increased" and not cough and (tiredness = "No or Little" or tiredness = "Medium") then desease := "Flu", print message + desease,nl, exec "Treatment" end healthy:5 if temperatureCategory = "Normal" then print "Pacient is O.K.! ", print "It's time to enjoy life in ", image "Monte Carlo" at "demo/Monte_Carlo.jpg",nl endsq~uq~ q~zq~rq~q~!q~]q~ppppxsq~ t Treatmentsq~uq~ sq~sq~uq~ sq~q~gsq~)sq~uq~ sq~.sq~uq~ ppppppppppxt Vitamin Cpppppppppxsq~sq~)sq~uq~ sq~Rsq~uq~ ppppppppppxt treatmentq~Xsq~.sq~uq~ ppppppppppxt sq~Rsq~uq~ ppppppppppxt medicamentq~Xpppppppxq~sq~q~pppppppxsq~3sq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxtdeseaseq~Xpppppppppxpppppppppxpppppppppxpppppppppxsq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxtColdpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxpppppppppxtvitaminssq~sq~uq~ sq~q~gsq~)sq~uq~ sq~.sq~uq~ ppppppppppxtAspirinpppppppppxsq~sq~)sq~uq~ sq~Rsq~uq~ ppppppppppxt treatmentq~Xsq~.sq~uq~ ppppppppppxt sq~Rsq~uq~ ppppppppppxt medicamentq~Xpppppppxq~sq~q~pppppppxsq~3sq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxtdeseaseq~Xpppppppppxpppppppppxpppppppppxpppppppppxsq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxtFlupppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxsq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxtalergyq~Xpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxtaspirinsq~sq~uq~ sq~q~gsq~)sq~uq~ sq~.sq~uq~ ppppppppppxtPanadolpppppppppxsq~sq~)sq~uq~ sq~Rsq~uq~ ppppppppppxt treatmentq~Xsq~.sq~uq~ ppppppppppxt sq~Rsq~uq~ ppppppppppxt medicamentq~Xpppppppxq~sq~q~pppppppxsq~3sq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxtdeseaseq~Xpppppppppxpppppppppxpppppppppxpppppppppxsq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxtFlupppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxsq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxtalergyq~Xpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxtpanadolsq~sq~uq~ sq~q~gsq~)sq~uq~ sq~.sq~uq~ ppppppppppxt Antibioticspppppppppxsq~sq~)sq~uq~ sq~Rsq~uq~ ppppppppppxt treatmentq~Xsq~.sq~uq~ ppppppppppxt sq~Rsq~uq~ ppppppppppxt medicamentq~Xpppppppxq~sq~q~pppppppxsq~3sq~6sq~uq~ sq~:sq~uq~ sq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~Rsq~uq~ ppppppppppxtdeseaseq~Xpppppppppxpppppppppxpppppppppxpppppppppxsq~>sq~uq~ sq~Bsq~uq~ sq~Fsq~uq~ sq~Jsq~uq~ sq~Nsq~uq~ sq~.sq~uq~ ppppppppppxt Pneumoniapppppppppxpppppppppxpppppppppxpppppppppxpppppppppxppppppppxpppppppppxpppppppppxt antibioticsppppppxq~t/* Knowledge base module definition */ ask "Alergy to aspirin" boolean alergy := false text medicament ("Vitamin C","Aspirin","Panadol","Antibiotics") := "Vitamin C" text treatment := "Suggested medicament" vitamins if desease = "Cold" then medicament := "Vitamin C", print treatment+" "+medicament,nl end aspirin if desease = "Flu" and not alergy then medicament := "Aspirin", print treatment+" "+medicament,nl end panadol if desease = "Flu" and alergy then medicament := "Panadol", print treatment+" "+medicament,nl end antibiotics if desease = "Pneumonia" then medicament := "Antibiotics", print treatment+" "+medicament,nl endsq~uq~ q~q~gq~Zpppppppxppppppppxq~X