Unlock instant, AI-driven research and patent intelligence for your innovation.

Mode matching method of rule engine and RETE network

A pattern matching and network technology, applied in data exchange networks, data exchange details, digital transmission systems, etc., can solve the problems of occupying large memory space and complex network matching process, reducing overhead, flexible configuration, and reducing time overhead Effect

Active Publication Date: 2011-08-31
北京思特奇信息技术股份有限公司
View PDF2 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The core algorithm of the rule engine is the RETE algorithm. In this algorithm, the process of fact matching rules is not necessarily independent. When multiple facts meet a certain condition at the same time, the action corresponding to the rule is executed. The original RETE algorithm is in the process of inserting facts. In the RETE network, all factual information is saved, which makes the network construction and matching process of the algorithm complex, and takes up a lot of memory space, making the system performance of the application rule engine much lower than the system that fixes the business logic in the code. As a result, the rule engine cannot be widely used in the billing system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Mode matching method of rule engine and RETE network
  • Mode matching method of rule engine and RETE network
  • Mode matching method of rule engine and RETE network

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0048] rule "1_INC_1"

[0049] salience 20

[0050] no-loop true

[0051] when

[0052] f:MonthBillingData(billing_type==3)

[0053] eval( f->order_stat. compare("05")==0&&

[0054] f->first_order_time_cur.compare("00000000000000")==0&&

[0055] f->first_order_time_his.compare(f->month_begin)<0&&

[0056] f->change_time.compare(f->month_begin)>=0)

[0057] then

[0058] / / cout<<"1_INC_1"<

[0059] f->state=11;

[0060] f->deduct_type=0;

[0061] end

example 2

[0063] rule "1_MONTH_1"

[0064] salience 20

[0065] no-loop true

[0066] when

[0067] f:MonthBillingData( )

[0068] eval( f->billing_type==1&&

[0069] f->first_order_time_his.compare(f->month_begin)<0&&

[0070] f->first_order_time_cur.compare("00000000000000")==0&&

[0071] (f->order_stat.compare("05")==0||f->order_stat.compare("06")==0))

[0072] then

[0073] / / cout<<"1_MONTH_1"<

[0074] f->state=11;

[0075] f->deduct_type=0;

[0076] end

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a mode matching method of a rule engine, and an RETE network. The method comprises the following steps: constructing the RETE network, wherein the RETE network comprises an RETE node, the RETE node comprises only one ObjectTypeNode, and the ObjectTypeNode comprises an AlphaNode, an EvalNode, a LeftInputAdapterNode and a TerminalNode; inserting a fact, and directly carrying out condition matching in the RETE network, not generating a facthandle of the fact, and not storing the information of the fact; and putting matched rules in a priority queue and extracting in sequence. The invention has the advantages that the flexibility of a system can be improved, the original charging rules fixed in codes are separated, and front desk rules of the rule engine are used to manage the system, so that the increase, the deletion, the check and the modification are very convenient, and the configuration is flexible; and the property of a content charge system after adopting the rule engine is superior to the ticket processing efficiency and the memory usage amount of the original content charge system at the ticket processing efficiency.

Description

technical field [0001] The invention relates to the content charging process in the telecommunication industry, in particular to a rule engine pattern matching method and RETE network for content charging. Background technique [0002] The development and maintenance of complex enterprise-level projects are faced with the problem that software must "change as needed". Since the business decisions and business logic that change frequently with external conditions and requirements are solidified in the code, this makes the development and maintenance of the software extremely difficult and consumes a lot of time and cost. Therefore, it is urgent to separate the business decision logic of the business decision maker And application developers' technical decisions, and put these business decisions in the central database or other unified places, so that they can be dynamically managed and modified at runtime, thereby improving the flexibility and adaptability of the software sys...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/14H04L12/24
Inventor 李晓静
Owner 北京思特奇信息技术股份有限公司