| 注册
首页|期刊导航|计算机应用与软件|基于UML模型的多态性与Java接口代码信息一致性检测的方法

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

余双双 曾一 刘慧君 杨燕宁

计算机应用与软件2017,Vol.34Issue(2):8-13,47,7.
计算机应用与软件2017,Vol.34Issue(2):8-13,47,7.DOI:10.3969/j.issn.1000-386x.2017.02.002

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

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

余双双 1曾一 1刘慧君 2杨燕宁1

作者信息

  • 1. 重庆大学计算机学院 重庆400030
  • 2. 软件理论与技术重庆市重点实验室 重庆400030
  • 折叠

摘要

Abstract

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模型/多态性/多态性扩展/一致性检测

Key words

UML model/Polymorphism/Polymorphic extension/Consistency detection

分类

信息技术与安全科学

引用本文复制引用

余双双,曾一,刘慧君,杨燕宁..基于UML模型的多态性与Java接口代码信息一致性检测的方法[J].计算机应用与软件,2017,34(2):8-13,47,7.

基金项目

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

计算机应用与软件

OA北大核心CSTPCD

1000-386X

访问量0
|
下载量0
段落导航相关论文