作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 软件技术与数据库 • 上一篇    下一篇

基于超图模型的软件模块自动划分

魏小凤,胡继承,罗永恩   

  1. (武汉大学软件工程国家重点实验室,武汉 430072)
  • 收稿日期:2014-11-03 出版日期:2016-01-15 发布日期:2016-01-15
  • 作者简介:魏小凤(1989-),女,硕士,主研方向为软件体系架构、嵌入式系统;胡继承,教授、博士后;罗永恩,硕士。
  • 基金资助:
    国家国际科技合作专项基金资助项目(2013DFA12460)。

Automatic Software Module Partition Based on Hypergraph Model

WEI Xiaofeng,HU Jicheng,LUO Yong’en   

  1. (State Key Lab of Software Engineering,Wuhan University,Wuhan 430072,China)
  • Received:2014-11-03 Online:2016-01-15 Published:2016-01-15

摘要: 应用超图理论模型设计软件模块的自动划分算法。通过分析软件源码建立超图模型,将类抽象为超图的顶点,使多个类之间存在关联,将软件模块划分转换为超图划分问题,再利用超图模型实现对超图的划分,从而达到软件模块划分的目的。基于高内聚低耦合原则给出模块度 的概念,得到优化的分割结果。以开源软件为实验数据,并与传统的划分算法hMetis进行对比,结果表明该算法的划分结果较优,验证了其合理性与有效性。

关键词: 软件模块划分, 超图建模, 超图划分, 模块度, hMetis算法

Abstract: This paper applies the hypergraph model to design automatic software module partition algorithm.Under the hypergraph modeling,each significant class extracted from the source codes of an analyzing software system is abstracted as a vertex of a hypergraph,and hyperedges are built among the classes which have relations to some extent.Then the problem of module partition is translated into a partitioning problem of a hypergraph,which can be solved by hypergraph partitioning algorithm.In order to improve the partitioning result,a new modularity function is constructed according to the cohesion states and coupling relations in and among software modules.Compared with hMetis algorithm,experimental results show that the proposed algorithm can obtain reasonable and effective module partition.

Key words: software module partition, hypergraph modeling, hypergraph partition, modularity, hMetis algorithm

中图分类号: