对于Jess语言中没有的功能函数,提出通过Java实现Jess的Userfunction接口来创建,进而达到扩展Jess语言功能函数的目的。该文从Jess提供的Userfunction接口入手,分析了Jess函数调用语句与Userfunction接口方法call参数之间的内在联系,抽取转换Jess函数的参数到Java环境中并进行处理,最终将处理结果转换并返回到Jess中。此方法被应用到基于RCM的压缩机检修策略的决策研究开发中。%Proposed a method to extending the Jess function based on Java language.This paper ana-lyzes the corresponding relationship between the arguments of method call, which is one of the methods of interface Userfunction in Jess, with the invoking statement of Jess, retrieves and converts the elements from Jess function’ s arguments to Java type, processes these elements in Java and returns the result of processing to Jess in the last.This method is applied to the research of decision making for maintenance strategy based on RCM.
展开▼