计算机科学 ›› 2026, Vol. 53 ›› Issue (11A): 260200087-1028.doi: 10.11896/jsjkx.260200087

• 计算机软件&体系结构 • 上一篇    下一篇

基于UML类图的软件结构脆弱性评估

胡文生   

  1. 贵州交通职业大学智慧交通学院 贵阳 551400
  • 出版日期:2026-11-16 发布日期:2026-11-16
  • 通讯作者: 胡文生(1204489713@qq.com)
  • 基金资助:
    2023年贵州省教育厅高等学校自然科学研究项目(黔教技[2023]049号);贵州交通职业大学高层次人才科研启动基金(KYQD2022015)

Software Structure Vulnerability Assessment Based on UML Class Diagram

HU Wensheng   

  1. College of Intelligent Transportation,Guizhou Communications Polytechnic University,Guiyang 551400,China
  • Published:2026-11-16 Online:2026-11-16
  • About author:HU Wensheng,born in 1969,Ph.D,professor,is a member of CCF(No.F7742M).His main research interests include software reliability,maintainability,and network security.
  • Supported by:
    This work was supported by the Natural Science Research Project for Higher Education Institutions of Guizhou Provincial Department of Education in 2023(Qianjiaoji[2023]049) and High Level Talent Research Launch Fund of Guizhou Communications Polytechnic University(KYQD2022015).

摘要: 软件系统故障分析与脆弱性评估的早期介入,对提升产品质量、降低维护成本具有关键作用。UML类图作为软件系统静态结构的标准化描述,是软件系统早期质量评估的重要研究对象。然而,传统基于类图的架构评审多依赖定性分析,缺乏系统性的定量评估手段。基于UML类图的软件结构脆弱性评估方法依据UML类图中7种基本关系的语义耦合强度赋予差异化权重,并以变更影响传导方向为依据,将类图映射为带权有向复杂网络。进一步地,从连通完整性、传输效率、拓扑有序性3个维度,选取鲁棒性指数、网络效率、模块化度、平均路径长度、度分布熵、接近活力均值等核心指标,通过极值归一化与加权融合构建加权综合脆弱性指数(WCVI),实现对软件系统结构脆弱性的整体量化评估。以Android 12核心组件Activity的UML类图为例开展实证分析,结果显示该组件的WCVI值为0.617,呈现显著的结构脆弱性,与Android 12版本故障频发的实际情况高度吻合,验证了方法的有效性与实用性。研究成果可为软件架构健康监控、预防性维护及故障溯源提供量化的理论工具与工程实践指导。

关键词: UML, 类图, 复杂网络, 脆弱性, 评估

Abstract: Early intervention in software system fault analysis and vulnerability assessment plays a crucial role in improving pro-duct quality and reducing maintenance costs.As a standardized description of the static structure of software systems,UML class diagrams are important research objects for early software quality assessment.However,traditional architecture reviews based on class diagrams mostly rely on qualitative analysis and lack systematic quantitative assessment methods.The software structure vulnerability assessment method based on UML class diagrams assigns differentiated weights based on the semantic coupling strength of the seven basic relationships in the UML class diagram,and maps the class diagram to a weighted directed complex network based on the direction of influence transmission changes.Furthermore,from the dimensions of connectivity integrity,transmission efficiency,and topological orderliness,core indicators such as robustness index,network efficiency,modularity,avera-ge path length,degree distribution entropy,and proximity to vitality mean are selected to construct a weighted comprehensive vulnerability index(WCVI) through extreme value normalization and weighted fusion,achieving an overall quantitative evaluation of software system structural vulnerability.An empirical analysis is carried out using the UML class diagram of the core component Activity in Android 12 as an example.The results show that the WCVI value of this component is 0.617,which exhibits significant structural vulnerability,highly consistent with the actual situation of frequent faults in the Android 12 version,verifying the effectiveness and practicality of the method.The research results can provide quantitative theoretical tools and engineering practice guidance for software architecture health monitoring,preventive maintenance and fault traceability.

Key words: UML, Class diagram, Complex network, Vulnerability, Assessment

中图分类号: 

  • TP311
[1] MARTIN J.An Information Systems Manifesto(1st Edition)[M].Upper Saddle River,NJ,USA:Prentice Hall PTR,1986.
[2] BOEHM B W.Characteristics of Software Quality[M].Amsterdam:North Holland,1978.
[3] KOENIG A,ALLAERT B,RENAUX E.NEURAL-UML:Intelligent Recognition System of Structural Elements in UML Class Diagram[J].MODELS-C 2023.2023:605-613.
[4] OMG Unified Modeling Language(OMG UML),Infrastructure(ISO/IEC 19505-1:2012)[S/OL].https://www.omg.org/spec/UML/
[5] JACOBSON B R.Unified Modeling Language User Guide(2nd ed)[M].Reading:Addison-Wesley,2005.
[6] LIAO H,QIU T,CHEN G.Identifying vital nodes of complex networks with an improved gravity model aware of structural damage and embedding[J].Europhysics Letters,2026,153(3).
[7] WANG Z,LI J H,KANG D.Research on recovering of complex networks based on boundary nodes of giant connected component[J].Journal of System Simulation,2020,32(12):2306-2316.
[8] LATORA V,MARCHIORI M.A measure of centrality basedon the network efficiency[J].New Journal of Physics,2007,9(6):188.
[9] QIN J,WU H,TONG X,et al.A quantitative method for determining the robustness of complex networks[J].Physica D:Nonlinear Phenomena,2013(253):85-90.
[10] OU G L,HE Y L,ZHANG M J,et al.Risk Minimization-Based Weighted Naive Bayesian Classifier[J].Computer Science,2025,52(3):137-151.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!