计算机应用与软件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
摘要
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)