Residential College | false |
Status | 已發表Published |
Automated transformations from UML behavior models to contracts | |
Li, Dan1,2; Li, Xiao Shan1; Liu, Zhi Ming4; Stolz, Volker3 | |
2014-12-10 | |
Source Publication | Science China Information Sciences
![]() |
ISSN | 1674733X |
Volume | 57Issue:12Pages:1-17 |
Abstract | In model driven architecture (MDA), system requirements are first captured by UML (unified modeling language) use cases with sequence diagrams to describe their intended use and implemented by classes of objected-oriented languages in the subsequent design stages. It is important that the dynamic behavior specified by the sequence diagrams is in full compliance with the implementation classes. This paper proposes an automatic approach and tool support for generating class contracts, which define a precondition and a postcondition for each operation of the class. The former serves as a guard to ensure invocations of the operations respect the semantics introduced by the sequence diagrams, and the latter places the system in a legal state to facilitate the succeeding operation calls. The contracts can be easily mapped to code of an object-oriented language such as Java. Thus, the approach helps to bridge the gap between the requirements and design stages of system development process. We use our model transformation tool to first generate a UML protocol state machine from the sequence diagrams, and then derive the contracts for a controller class. The transformations take into account the concurrency and critical constructs of the respective UML diagrams. © 2014, Science China Press and Springer-Verlag Berlin Heidelberg. |
DOI | 10.1007/s11432-014-5159-8 |
Language | 英語English |
WOS ID | WOS:000346238500002 |
The Source to Article | Engineering Village |
Scopus ID | 2-s2.0-84918528271 |
Fulltext Access | |
Citation statistics | |
Document Type | Journal article |
Collection | University of Macau |
Affiliation | 1.University of Macau, Macau, China; 2.Guizhou Academy of Sciences, Guiyang; 550001, China; 3.Department of Informatics, University of Oslo, Oslo; 0316, Norway; 4.School of Computing, Telecommunications and Networks, Birmingham City University, Birmingham; B422SU, United Kingdom |
First Author Affilication | University of Macau |
Recommended Citation GB/T 7714 | Li, Dan,Li, Xiao Shan,Liu, Zhi Ming,et al. Automated transformations from UML behavior models to contracts[J]. Science China Information Sciences, 2014, 57(12), 1-17. |
APA | Li, Dan., Li, Xiao Shan., Liu, Zhi Ming., & Stolz, Volker (2014). Automated transformations from UML behavior models to contracts. Science China Information Sciences, 57(12), 1-17. |
MLA | Li, Dan,et al."Automated transformations from UML behavior models to contracts".Science China Information Sciences 57.12(2014):1-17. |
Files in This Item: | There are no files associated with this item. |
Items in the repository are protected by copyright, with all rights reserved, unless otherwise indicated.
Edit Comment