arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.17063cs.SE
收藏

SPViz:一种用于软件项目可视化工具的领域特定语言(DSL)驱动方法

SPViz: A DSL-Driven Approach for Software Project Visualization Tooling

Niklas Rentz, Reinhard von Hanxleden

AI总结:

针对现有架构可视化工具适配性差、小众架构工具缺失且需手动建模的问题,提出使用两种DSL的SPViz方法,可自动生成适配项目变化的定制可视化工具,并已在开源库实现且验证了四种应用案例。

摘要:

对于大多数服务架构(如OSGi和Spring)而言,架构专属工具能让软件开发者和架构师可视化那些隐藏在项目文件中、原本难以理解的配置。这类可视化工具通常用于文档编制,且相比仅阅读源代码,能帮助人们更好地理解程序。然而,这类工具往往无法适配项目的特有属性,针对小众架构的可视化工具甚至根本不存在,这就要求开发者在同一架构下使用多种不同的可视化与分析工具。此外,许多通用建模工具和架构可视化工具需要用户手动创建和维护模型。\n我们在此提出一种领域特定语言(DSL)驱动的方法,让软件架构师能够定义并适配自己的项目可视化工具。该方法被称为软件项目可视化(SPViz),它使用两种DSL:一种用于描述架构元素及其关系,另一种用于描述这些元素的可视化方式。我们展示了SPViz如何自动生成定制化的、项目专属的可视化工具,且该工具能自动适配底层项目的变化。\n我们在一个同样名为SPViz的开源库中实现了该方法,并讨论和分析了遵循这一理念的四种不同工具,涵盖开源项目以及来自铁路领域工业合作伙伴的项目。

英文摘要:

For most service architectures, such as OSGi and Spring, architecture-specific tools allow software developers and architects to visualize otherwise obscure configurations hidden in the project files. Such visualization tools are often used for documentation purposes and help to better understand programs than with source code alone. However, such tools often do not address project-specific peculiarities or do not exist at all for less common architectures, requiring developers to use different visualization and analysis tools within the same architecture. Furthermore, many generic modeling tools and architecture visualization tools require their users to create and maintain models manually. We here propose a DSL-driven approach that allows software architects to define and adapt their own project visualization tool. The approach, which we refer to as Software Project Visualization (SPViz), uses two DSLs, one to describe architectural elements and their relationships, and one to describe how these should be visualized. We demonstrate how SPViz can then automatically synthesize a customized, project-specific visualization tool that can adapt to changes in the underlying project automatically. We implemented our approach in an open-source library, also termed SPViz and discuss and analyze four different tools that follow this concept, including open-source projects and projects from an industrial partner in the railway domain.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑