分类:
2006-09-18 09:20:33
Jess是由 (as part of an internal research project)的一位专家写成。Jess全名为java expert system shell,是基于CLIPS规则扩展的一个系统工具,由java语言完成。通过应用事实规则几何可以退出新的事实。支持多对对的匹配。顺便提下产生式系统cLIPS。cLIPS的基本组成与知识表示包括
1、事实:用来表示已知的数据或信息。事实是一个N元式,由一对圆括号括住的一个或N个域组成,这些域的数据可以是三种不同的类型,即:字(以字母打头的字符串)、符号串(括在一对双引号内的一个或多个字符串)、数值(整形数或实型数),域之间用空格分开。所有事实都保存在在工作存储器中,所以称事实为工作存储器元素(VME)。
事实举例:(hihg
(price is 200 yuan) 表示价格为200元!
(name "Newell")
可用命令
(asset事实名)
2、规则:用来表示系统推理的有关知识。cLISP中的规则是变形的产生式规则,可用defrule命令来定义,其格为如下:
(defrule 规则名[注释]
模式
=>
动作)
3、待处理事件表:用于存储匹配成功的规则集合,它相当于一般产生式系统中的冲突集。
1.下载及配置,首先必须要正确安装和配置JDK。
JESS下载网址:
下载解压后,我下载的是61P8稳定版本。解压到比如jess6文件夹中,其下面的目录结构为
docs/ |
This documentation |
jess/ |
A directory containing the jess package. There are many source files in here that implement Jess's inference engine. Others implement a number of Jess GUIs and command-line interfaces. Main.java implements the Jess command-line interface. Console.java is a very simple GUI console for Jess; ConsoleApplet.java is an applet version of the same. If you have a binary-only distribution of Jess, this directory will contain only the examples subdirectory. |
examples/ |
A directory of tiny example Jess files. |
jess/examples |
A directory of more complicated examples, containing example Java source files. |
jess.jar (optional) |
A Java archive file containing the Jess classes themselves. Binary distribution only. |
Makefile (optional) |
A simple makefile for Jess. Source distribution only. |
然后再ClASSPATH中加入环境变量D:\Jess6\jess.jar (jess的解压路径)。
2.测试:在控制台界面下输入命令java jess.Main examples/fullmab.clp
将会得到一个经典的猴子摘香蕉的问题的解,结果如图:
wowgold7th2010-01-23 14:29:44
http://www.wowgold7th.com maybe caught a cold now,because she is full of catarrh.but the boy who send cheap wow gold doesnt care her again.55why did it happen?
chinaunix网友2009-12-21 09:51:54
Goldsoon.com will be your best choice. Goldsoon has been an eBay power seller and PayPal confirmed seller of wow gold for years. And we will provide you a safe guide to help you to buy cheap wow gold safely. Our special guide can always guarantee your account security. When you purchase cheap wow gold or any others products, our professional services will definitely help you to eva