UML-RSDS

From HandWiki
Short description: Model-transformation language (software)


UML-RSDS is a lightweight model-driven engineering (MDE) and model transformation tool supporting the UML 2.5 class diagram notation and OCL 2.4 Object Constraint Language. It supports code-generation in multiple 3GLs: Java, C#, C++, Python, Go, Swift and ANSI C.

The toolset has been defined as an Eclipse project AgileUML under the modeling category.[1]

The toolset originated from EPSRC-funded research at Imperial College and King's College London in the period 1996–2014. It was publicly released in 2010 and defined as an Eclipse project in 2019. It is now supported by AgileMDE Ltd: agilemde.co.uk.

One motivation of the tools has been to provide a means for general software practitioners to use MDE in a flexible manner, to support agile development using MDE. The tool has been applied to financial software development[2] and to many different kinds of transformation problems, for example[3][4]

Language characteristics

The main specification notations in UML-RSDS are UML class diagrams and use cases, together with Object Constraint Language (OCL) expressions, used to define invariants and operation pre and post-conditions.[5] Either a graphical or textual notation can be used for UML-RSDS specifications.

For example, a simple class specification could be written as:

class Person {
  attribute age: int;
  attribute name: String;

  operation birthday()
  pre: true
  post: age = age@pre + 1;
}

Transformations are defined as use cases together with constraints expressing how result data is derived from input data.[6] Thus a declarative specification style similar to the QVT relations language is supported, but without the need to define additional syntax or language elements - only OCL is used. For example, to copy every person instance to a 'PersonRecord' with a 'data' attribute formed from the name and age, it is sufficient to write:

usecase copyPersons {
  Person::
    PersonRecord->exists( r | r.data = name + age )
}

Verification procedures have been defined for this style of transformation specification.[7]

For more general software applications, procedural-style code using statements such as assignment (:=), loops (while, for), conditionals (if then else) and sequencing (;) can be used to define operation and usecase behaviour. These statements correspond to a text version of UML activity models[8]

The version of OCL used is an extension of OCL version 2.4, with additional data types Map and Function, together with extended sets of operators for strings (such as regular expressions) and collections.[9] These can be used to provide a representation for the semantics of reverse-engineered programs from languages such as Java or COBOL. In turn, the representations in UML/OCL can then be translated to other languages such as Swift or Python.

Application and evaluation

UML-RSDS has been the subject of a number of independent reviews and comparative evaluations by the model-transformation research community, such as the following secondary reliable sources authored by researchers independent of the UML-RSDS development team, which highlight the characteristics of UML-RSDS which support transformation verification:[10][11][12]

It is notable as one transformation language which supports the property of additivity,[13] this means that the semantics of UML-RSDS specifications are compositional.

UML-RSDS has been used by several case study solutions in the Transformation Tool Contest (TTC), the leading model transformation venue for transformation evaluation.[14][15][excessive citations] In particular, the UML-RSDS solution came 3rd in the TTC 2014 "Movie Database" case contest.[16]

It has been used in education and research by a number of universities, in particular, King's College London (UK), the University of Isfahan (Iran), Texas A and M International University (USA), TU Darmstadt (Germany), Azarbaijan Shahid Madani University (Iran) and University of Waterloo (Canada).

References

  1. "Agile UML". 5 February 2019. https://projects.eclipse.org/projects/modeling.agileuml. 
  2. Alfraihi, Hessa (2018). "System Analysis and Modeling. Languages, Methods, and Tools for Systems Engineering". 11150. pp. 229–245. doi:10.1007/978-3-030-01042-3_14. ISBN 978-3-030-01041-6. 
  3. Jakumeit, Edgar; Buchwald, Sebastian; Wagelaar, Dennis; Dan, Li; Hegedüs, Ábel; Herrmannsdörfer, Markus; Horn, Tassilo; Kalnina, Elina et al. (June 1, 2014). "A survey and comparison of transformation tools based on the transformation tool contest". Science of Computer Programming 85: 41–99. doi:10.1016/j.scico.2013.10.009. 
  4. Rose, Louis M.; Herrmannsdoerfer, Markus; Mazanek, Steffen; Van Gorp, Pieter; Buchwald, Sebastian; Horn, Tassilo; Kalnina, Elina; Koch, Andreas et al. (February 1, 2014). "Graph and model transformation tools for model migration". Software & Systems Modeling 13 (1): 323–359. doi:10.1007/s10270-012-0245-0. https://doi.org/10.1007/s10270-012-0245-0. 
  5. Lano, Kevin (2017). Agile Model-Based Development Using UML-RSDS. doi:10.1201/9781315368153. ISBN 9781498752237. https://www.taylorfrancis.com/books/mono/10.1201/9781315368153/agile-model-based-development-using-uml-rsds-kevin-lano. 
  6. Hidaka, Sochiro; Jouault, Frederic; Tisi, Massimo (2017). "On Additivity in Transformation Languages". 2017 ACM/IEEE 20th International Conference on Model Driven Engineering Languages and Systems (MODELS). pp. 23–33. doi:10.1109/MODELS.2017.21. ISBN 978-1-5386-3492-9. https://ieeexplore.ieee.org/document/8101243. 
  7. Thangaraj, Jagadeeswaran; Ulaganathan, Senthilkumaran (2020). "A Comparative Study on Transformation of UML/OCL to Other Specifications". Recent Advances in Computer Science and Communications 13 (2): 256–264. doi:10.2174/2213275912666190129121059. https://www.ingentaconnect.com/content/ben/rascs/2020/00000013/00000002/art00021. 
  8. Lano, Kevin (2017). Agile Model-Based Development Using UML-RSDS. doi:10.1201/9781315368153. ISBN 9781498752237. https://www.taylorfrancis.com/books/mono/10.1201/9781315368153/agile-model-based-development-using-uml-rsds-kevin-lano. 
  9. Lano, Kevin; Kolahdouz-Rahimi, Shekoufeh (2021). "Extending OCL with Map and Function Types". Fundamentals of Software Engineering. Lecture Notes in Computer Science. 12818. pp. 108–123. doi:10.1007/978-3-030-89247-0_8. ISBN 978-3-030-89246-3. https://link.springer.com/chapter/10.1007/978-3-030-89247-0_8. 
  10. Calegari, Daniel; Szasz, Nora (March 5, 2013). "Verification of Model Transformations: A Survey of the State-of-the-Art". Electronic Notes in Theoretical Computer Science 292: 5–25. doi:10.1016/j.entcs.2013.02.002. 
  11. Kahani, Nafiseh; Bagherzadeh, Mojtaba; Cordy, James R.; Dingel, Juergen; Varró, Daniel (August 1, 2019). "Survey and classification of model transformation tools". Software & Systems Modeling 18 (4): 2361–2397. doi:10.1007/s10270-018-0665-6. https://doi.org/10.1007/s10270-018-0665-6. 
  12. Ab. Rahim, Lukman; Whittle, Jon (May 1, 2015). "A survey of approaches for verifying model transformations". Software & Systems Modeling 14 (2): 1003–1028. doi:10.1007/s10270-013-0358-0. https://doi.org/10.1007/s10270-013-0358-0. 
  13. S. Hidaka et al., On Additivity in Transformation Languages, MODELS 2017, ACM Press
  14. Jakumeit, Edgar; Buchwald, Sebastian; Wagelaar, Dennis; Dan, Li; Hegedüs, Ábel; Herrmannsdörfer, Markus; Horn, Tassilo; Kalnina, Elina et al. (June 1, 2014). "A survey and comparison of transformation tools based on the transformation tool contest". Science of Computer Programming 85: 41–99. doi:10.1016/j.scico.2013.10.009. 
  15. Rose, Louis M.; Herrmannsdoerfer, Markus; Mazanek, Steffen; Van Gorp, Pieter; Buchwald, Sebastian; Horn, Tassilo; Kalnina, Elina; Koch, Andreas et al. (February 1, 2014). "Graph and model transformation tools for model migration". Software & Systems Modeling 13 (1): 323–359. doi:10.1007/s10270-012-0245-0. https://doi.org/10.1007/s10270-012-0245-0. 
  16. "Transformation Tool Contest (TTC) 2014". http://www.transformation-tool-contest.eu/2014/solutions_movie.html. 

External links