Posted by: TARONO on: May 31, 2008
衝 !
Posted by: TARONO on: May 28, 2006
Expert System 筆記 (1)定義樣板 (deftemplate 名稱 (slot 名) (multislot 名)) ex: (deftemplate stu (slot id) (multislot name)) (2)定義規則範例 (defrule 名稱 ?f<-(student tarono) ;這是註解,把某個fact的位址bind到?f => (retract ?f) ;撤除此條fact (assert (student abc)) ) (defrule r1 ?f <-(student ?id) ?f2<-(stu_info (id ?id) (father ?f) (mother ?m)) ;?id bind 上面那條規則的?id => ….. ) (defrule r2 ?f <-(student ?id) (test [...]