Jess is expert system language like clips but based off java instead of c This is my code [CODE](import javax.swing.*) (import java.awt.*) (import java.awt.event.*) (set-reset-globals FALSE) (defglobal ?*crlf* = " ") ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Question and answer templates (deftemplate question (slot text) (slot type) (multislot valid) (slot ident)) (deftemplate answer (slot ident) (slot text)) (do-backward-chaining answer) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Module trigger (defmodule trigger) (defrule trigger::supply-answers (declare (auto-focus TRUE)) (MAIN::need-answer (ident ?id)) (not (MAIN::answer (ident ?id))) (not (MAIN::ask ?)) => (assert (MAIN::ask ?id)) (return)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Rules (defrule MAIN::Starts-Normally (declare (auto-focus TRUE)) (answer (ident starter) (text normal)) => (recommend-action "Car started normally No …

Member Avatar
+0 forum 0

The End.