首页> 中文期刊> 《计算机应用与软件》 >基于UML模型的多态性与Java接口代码信息一致性检测的方法

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

         

摘要

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.

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号