Compile-time and runtime analysis of active behaviors

被引:39
作者
Baralis, E
Ceri, S
Paraboschi, S
机构
[1] Politecn Torino, Dipartimento Automat & Informat, I-10129 Turin, Italy
[2] Politecn Milan, Dipartimento Electtron & Informaz, I-20133 Milan, Italy
关键词
rule analysis; rule termination; rule debugging; active databases; production rules;
D O I
10.1109/69.687973
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Active rules may interact in complex and sometimes unpredictable ways, thus possibly yielding infinite rule executions by triggering each other indefinitely. This paper presents analysis techniques focused on detecting termination of rule execution. We describe an approach which combines static analysis of a rule set at compile-time and detection of endless loops during rule processing at runtime. The compile-time analysis technique is based on the distinction between mutual triggering and mutual activation of rules. This distinction motivates the introduction of two graphs defining rule interaction, called Triggering and Activation Graphs, respectively. This analysis technique allows us to identify reactive behaviors which are guaranteed to terminate and reactive behaviors which may lead to infinite rule processing. When termination cannot be guaranteed at compile-time, it is crucial to detect infinite rule executions at runtime. We propose a technique for identifying loops which is based on recognizing that a given situation has already occurred in the past and, therefore, will occur an infinite number of times in the future. This technique is potentially Very expensive, therefore, we explain how it can be implemented in practice with limited computational effort. A particular use of this technique allows us to develop cycle monitors, which check that critical rule sequences, detected at compile time, do not repeat forever. We bridge compile-time analysis to runtime monitoring by showing techniques, based on the result of rule analysis, for the identification of rule sets that can be independently monitored and for the optimal selection of cycle monitors.
引用
收藏
页码:353 / 370
页数:18
相关论文
共 39 条
[1]  
AGRAWAL R, 1991, PROC INT CONF VERY L, P479
[2]   STATIC ANALYSIS TECHNIQUES FOR PREDICTING THE BEHAVIOR OF ACTIVE DATABASE RULES [J].
AIKEN, A ;
HELLERSTEIN, JM ;
WIDOM, J .
ACM TRANSACTIONS ON DATABASE SYSTEMS, 1995, 20 (01) :3-41
[3]  
[Anonymous], 1972, COMPLEXITY COMPUTER
[4]  
Baralis E, 1994, LECT NOTES COMPUT SC, V881, P205
[5]   Modularization techniques for active rules design [J].
Baralis, E ;
Ceri, S ;
Paraboschi, S .
ACM TRANSACTIONS ON DATABASE SYSTEMS, 1996, 21 (01) :1-29
[6]  
BARALIS E, 1995, LECT NOTES COMPUTER, V1013, P38
[7]  
BARALIS E, 1993, P 1 INT WORKSH RUL D, P163
[8]  
BARALIS E, 1996, UNPUB BETTER STATIC
[9]  
BARALIS E, 1995, LECT NOTES COMPUTER, V985, P165
[10]  
Baralis Elena., 1994, VLDB, P475