首页> 外文会议>Program Comprehension, 2009. ICPC '09 >Standing on the shoulders of giants - A data fusion approach to design pattern detection
【24h】

Standing on the shoulders of giants - A data fusion approach to design pattern detection

机译:站在巨人的肩膀上-一种用于设计模式检测的数据融合方法

获取原文

摘要

Identification of design patterns can deliver important information to designers. Therefore, automated design pattern detection (DPD) is highly desirable when it comes to understanding unknown code. In this paper, we present the results of evaluating five existing DPD tools on various Java projects. These results motivate our proposal of a novel DPD approach based on data fusion. It combines design pattern candidate sets coming from different tools implementing different DPD techniques. We show that a design pattern can be a witness for the existence of another pattern. Our approach is able (1) to provide correct diagnostics even if the inputs from the evaluated tools were partly wrong and (2) to detect patterns instances not identified by the individual tools. For the Decorator, Visitor and Observer pattern, the witness-based approach yields better precision and recall than provided by any single tool. In particular, it detects 24 out of 30 instances of these patterns missed in our experiments by the evaluated tools. We also found that on the analyzed instances of the Bridge, Mediator and Facade pattern data fusion could not improve results, demonstrating that research into improvements of the basic detection techniques is still necessary.
机译:设计模式的识别可以为设计师提供重要的信息。因此,在了解未知代码时,非常需要自动设计模式检测(DPD)。在本文中,我们介绍了在各种Java项目上评估五个现有DPD工具的结果。这些结果激发了我们基于数据融合的新型DPD方法的建议。它结合了来自实施不同DPD技术的不同工具的设计模式候选集。我们表明设计模式可以证明存在另一种模式。我们的方法能够(1)提供正确的诊断,即使所评估工具的输入部分不正确,以及(2)能够检测单个工具未识别的模式实例。对于Decorator,Visitor和Observer模式,基于见证人的方法比任何单个工具提供的精度和召回率都更高。特别是,它会在评估的工具中检测出我们实验中漏掉的30种实例中的24种。我们还发现,在所分析的Bridge,Mediator和Facade模式实例上,数据融合无法改善结果,这表明仍需要对基本检测技术的改进进行研究。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号