An approach for design pattern detection based on the formal context-free grammar relation driver
-
摘要: 針對設計模式識別結果的假陰性問題與重疊問題,為提高設計模式實例恢復的精確性,提出一種形式化上下無關文法關系驅動的設計模式檢測方法.依據設計模式實例中的參與者屬性及其關系,以形式化可視化語言描述模式實例的識別文法.在此基礎上,改進該文法檢測設計模式實例參與者間的附加關系,并識別共享實例的模式.實驗結果表明,新方法不僅減少了模式實例的假陰性結果,還解決了模式實例識別的重疊問題,與其他檢測方法的精確度、召回率及F-score指標比較,新方法取得了較好的效果.Abstract: Aiming at the false negative problem and the overlap problem in pattern instance detection,in order to improve the accuracy of the design pattern recovery,this article introduces an approach for design pattern detection based on the formal context-free grammar relation driver. Focusing on the attribute and relationship of classes in pattern instances,the formal grammar of pattern instance identification is established using the visual language,and an improved formalism grammar is presented for identifying the additional relationships and the sharing problem of design pattern instances. Experimental results show that,compared with other wellknown algorithms by precision,recall and F-score,the proposed method can reduce the false negative results and the overlap problem in pattern instance detection,indicating the effectiveness of the proposed method.
-
Key words:
- pattern recognition /
- design patterns /
- detection /
- formal grammars
-

計量
- 文章訪問數: 187
- HTML全文瀏覽量: 27
- PDF下載量: 7
- 被引次數: 0