摘 要: 随着作战需求的多样化,一些复杂的业务规则很难推导出精确的算法或抽象出合适的数据模型,因此将业 务规则与软件代码分开引入规则引擎已成为一种主流趋势。Drools规则引擎作为决策系统的推理机,采用Rete算法实现 推理机的规则匹配,有着较高的效率,能够较好匹配兵力接替系统。本文介绍了基于Drools规则引擎的兵力接替系统的 设计方法及实现,具体设计了作战规则、并提出策略匹配的改进冲突消解算法,对此方法进行了实验比较,实验证明此 方法大大增强了系统的开发效率和后期软件的维护成本。 |
关键词: Drools;规则引擎;业务规则;Rete |
中图分类号: TP315
文献标识码: A
|
|
Troop Patrol System Research Based on Improved Drools Rules Engines |
LIU Jingjing,CUI Yan,CHU Jianmin1,2
|
1.( 1. 28th Institute of China Electronic Technology Corporation, Nanjing 210007, China;2. 2.High School of Peking University, Beijing 100910, China)
|
Abstract: With the diversification of the battle demands,precise algorithms or data models can hardly be derived from some complicated business rules.Therefore,it has become a mainstream trend to separately import business rules and software code into the rule engine.As the inference engine of the decision-making system,the drools rule engine adopts the rete algorithm to implement the rule-matching of the inference engine,which has high efficiency and appropriately matches the troop patrol system.This paper introduces the design and implementation of the troop patrol system based on the Drools rule engine,including the design of engagement rules.An improved rule-matching algorithm is also proposed.The result of comparison experiment shows that this method greatly improves the software development efficiency and effectively reduces the maintenance costs. |
Keywords: drools;rule engine;business rule;rete |