GRAMMAR-BASED METHOD FOR TRANSFORMING FORMALIZED REQUIREMENTS INTO EXTENDED UML MODELS

Authors

DOI:

https://doi.org/10.35546/kntu2078-4481.2025.3.2.29

Keywords:

UML, requirements, grammar, transformation, software engineering, intelligent systems, modeling, UML profile

Abstract

This article addresses the relevant task of transforming formalized requirements into extended UML models, which is of great importance for increasing the efficiency of designing intelligent and critical systems. The study focuses on combining a grammatical approach with UML profile mechanisms, which makes it possible to ensure automated consistency checking of requirements, representation of uncertainty and probabilistic properties, and improvement of the accuracy and adaptability of the created models. The relevance of the topic is determined by the increasing complexity of modern information systems, where requirements often remain vague, contradictory, or changing, which complicates their formalization and further representation in traditional UML.A methodology is proposed based on a two-level grammar: attribute grammar is used for requirements reconciliation and for constructing the their consistent set, while transformation grammar defines the mapping of these requirements into UML elements according to their attributes (confidence, likelihood, context, priority, resources). The article provides formal transformation rules for functional, non-functional, data, and scenario requirements, which are implemented through the creation of use cases, classes, constraints, sequence diagrams, and state diagrams. Special attention is paid to the mechanism of assigning stereotypes that preserve the semantics of the original specifications, as well as to tracing, which ensures transparent links between requirements and UML model elements.The practical applicability of the method is demonstrated using the example of an intelligent medical patient monitoring system. The study revealed several advantages of the developed approach: reduction of the time required for updating models, improvement of the level of consistency between requirements and their model representations, and the ability to represent fuzzy and probabilistic properties. A comparison with classical UML without a profile showed that the proposed method provides broader opportunities for modeling adaptive systems in environments with a high level of uncertainty.At the same time, certain limitations were identified: the need to customize grammar for a specific application domain and the requirement for integration with CASE tools to automate transformations.Further research involves several directions for the development of the methodology: automated generation of UML diagrams in modern CASE tools; as well as integration of the approach with SysML v2 as a promising system engineering standard.

References

Allian A.P., Nakagawa E.Y., Martinez J., Oliveira Jr. E., et al. Variability Implementation and UML-Based Software Product Lines. UML-Based Software Product Line Engineering with SMarty. Springer, Cham, 2022. С. 27–40. DOI: 10.1007/978-3-031-18556-4_2

Cu C., Ye X., Zheng Y. Xlinemapper: a product line feature-architecture-implementation mapping toolset. 41st International Conference on Software Engineering: Companion Proceedings (ICSE ’19). IEEE Press, Piscataway, 2019. С. 87–90. DOI: 10.1109/ICSE-Companion.2019.0004516

Abdelmadjid L. Uncertain Decision-Making Requirements Formalizing with CF UML model. Procedia Computer Science. 2022. Vol. 192. С. 2503–2512. DOI: 10.1016/j.procs.2021.12.247

Cazzola W., Olivares-Corichi I. Bridging the model-to-code abstraction gap with fuzzy logic: FLiRTS 2 for UML class diagrams. Software and Systems Modeling. 2022. Vol. 21. С. 1717–1742. DOI: 10.1007/s10270-021-00899-6

Cardiel-Ortega J. J., López-Robles J. R., Otegi-Olaso J. R., Gamboa-Rosales H. Probabilistic Fuzzy System for Evaluation and Failure Modes in FMEA. Processes. 2024. Vol. 12, Is. 6. Article № 1197. DOI: 10.3390/pr12061197

Dalpiaz F., Ferrari A., Franch X., Palomares C. Natural Language Processing for Requirements Engineering: The Best Is Yet to Come. IEEE Software. 2018. Vol. 35, No. 5. С. 115–119. DOI: 10.1109/MS.2018.3571242

Yang M., Ban A. Automated UML Class Diagram Generation from Textual Requirements Using NLP Techniques. JOIV International Journal on Informatics Visualization. 2024. Vol. 8, No. 3–2. С. 1905–1915. DOI: 10.62527/joiv.8.3-2.3482

Lano K., Xue Q., Haughton H. A Concrete Syntax Transformation Approach for Software Language Processing. SN Computer Science. 2024. Vol. 5. Article 645. DOI: 10.1007/s42979-024-02979-y

Ražinskas M., Miliūnas B., Jurgelaitis M., Čeponienė L., Bisikirskienė L. Transforming Sketches of UML Use Case Diagrams to Models. IEEE Access. 2024. Vol. 12. С. 185826–185837. DOI: 10.1109/ACCESS.2024.3514455

Maschotta R., Silatsa N., Jungebloud T., Hammer M., Zimmermann A. An OCL Implementation for Model-Driven Engineering of C++. Lee R. (ed.) Software Engineering Research, Management and Applications (SERA 2022). Studies in Computational Intelligence. Vol. 1053. Springer, Cham, 2022. С. 151–168. DOI: 10.1007/978-3-031-09145-2_10

Published

2025-11-28