作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2011, Vol. 37 ›› Issue (4): 267-269. doi: 10.3969/j.issn.1000-3428.2011.04.096

• 开发研究与设计技术 • 上一篇    下一篇

一种基于tuProlog的智能售货系统设计

杨铁军,黄 琳   

  1. (桂林理工大学信息科学与工程学院,广西 桂林 541004)
  • 出版日期:2011-02-20 发布日期:2011-02-17
  • 作者简介:杨铁军(1979-),男,博士,主研方向:软件工程,数字图像处理;黄 琳,讲师
  • 基金资助:
    广西教育厅科研基金资助项目(201012MS105);广西自然科学基金资助项目(0991253)

Design of Intelligent Salesman System Based on tuProlog

YANG Tie-jun, HUANG Lin   

  1. (College of Information Science and Engineering, Guilin University of Technology, Guilin 541004, China)
  • Online:2011-02-20 Published:2011-02-17

摘要: 给出一种结合Prolog逻辑智能和传统程序设计的虚拟售货员系统的设计方法。该方法基于tuProlog技术,将业务逻辑与关系型数据结合在一起的传统程序设计转变为将逻辑推理与其他非逻辑处理分开的设计方法,即把系统分为逻辑处理模块和骨骼模块,逻辑模块负责复杂多变的业务逻辑处理,骨骼模块负责其他非逻辑问题,介绍逻辑模块的设计思路和实现步骤。该方法既利用了传统程序设计的优势,又将复杂的逻辑推理独立出来,由专门的逻辑引擎处理,有效提高系统的灵活性和可扩展性,是一种可供参考的智能程序设计方法。

关键词: Prolog语言, 面向逻辑编程, 智能, 电子商务

Abstract: This paper proposes a method for virtual salesman system based on the combination of the logical programming of Prolog and the traditional one. By using tuProlog, it changes the traditional way of the mixture of business logic and relational data into the one of separating the logic part from the mixture. The system is divided into 2 modules: the Logic processing Module(LM) and the Skeleton Module(SM). LM is in charges of the business logics while SM is responsible for other non-logic problems. The design and implementation of LM is described emphatically. The method not only takes the advantages of the traditional programming, but also uses the special logical engine to process the separated complicated business logics, which can improve the flexibility and scalability of the system. It is a valuable design for intelligent programming.

Key words: Prolog language, logic-oriented programming, intelligence, electronic commerce

中图分类号: