Forward/Backward Chaining ------------------------- This is an applet (RuleApplet.html) which implements the two major types of reasoning algorithms used with rule-based systems: forward and backward chaining. To see the applet in action you have to compile the applet java file using: javac RuleApplet.java and produce twelve class files, resulting with: RuleVarDialog.java RuleVariable.java RuleApplet.class Variable.java Condition.java RuleApplet$SymAction.class RuleApplet$SymItem.class RuleVarDialog.class RuleVarDialog$SymAction.class RuleVarDialog$windowEvents.class Rule.class RuleApplet.html RuleBase.class RuleVariable.class Variable.class Condition.class Clause.class RuleApplet.java Rule.java RuleBase.java Clause.java Then either access RuleApplet.html from a web browser or through the appletviewer using: appletviewer RuleApplet.html Note: This code was tested using JDK1.1.8 which can be downloaded and installed from the site: http://staff.um.edu.mt/mmon1/lectures/java ----------------------------------------- MM2000