基于UML模型的多态性与Java接口代码信息一致性检测的方法  被引量:5

THE CONSISTENCY DETECTION METHOD OF POLYMORPHISM AND JAVA INTERFACE CODE INFORMATION BASED ON UML MODEL

在线阅读下载全文

作  者:余双双[1] 曾一[1,2] 刘慧君[1,2] 杨燕宁[1] 

机构地区:[1]重庆大学计算机学院,重庆400030 [2]软件理论与技术重庆市重点实验室,重庆400030

出  处:《计算机应用与软件》2017年第2期8-13,47,共7页Computer Applications and Software

基  金:国家自然科学基金项目(61272194)

摘  要:UML模型是面向对象系统开发常用的建模语言,在由模型生成代码的过程中常常出现不一致问题,从而造成系统后期测试成本以及维护成本的增加。而UML模型中的多态性因执行路径的不确定性会对模型与代码的一致性产生重要影响,因此针对此问题提出以UML模型为基准,针对多态特性,对UML模型类图、时序图以及Java接口代码信息进行解析预处理从而获取时序调用图以及代码调用图,并对其进行多态性扩展。根据模型的信息来对代码的信息进行检测,如果出现不一致问题时根据模型信息对代码信息进行修改。通过以上提出的方法能够更加完善模型与代码的一致性检测,使检测更为有效、精准。UML is a common modeling language for object-oriented system development. When the code is generated from the model,the inconsistent problem always exist and it will increase the later test cost and the maintenance cost.Since uncertainty of execution paths of polymorphism in UML model which makes important impact on consistency detection of the model and the code,using the UML model as the benchmark and the polymorphism(Overloading and Overriding) as the key elements,the Sequence Diagram-Call Graph(SD-CG) and Code Call Graph(CCG) is able to be obtained by analyzing and preprocessing the class diagram,sequence diagram and the Java interface code information,which should be treated with polymorphic extension. The code information is detected according to the information of the model,if there are inconsistent problems,the code information will be modified according to the model information. The proposed method can improve the consistency detection of the model and the code,getting more effective and accurate detection.

关 键 词:UML模型 多态性 多态性扩展 一致性检测 

分 类 号:TP3[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象