Content deleted Content added
m Removing link(s) Wikipedia:Articles for deletion/Platform-independent model closed as delete (XFDcloser) |
|||
(36 intermediate revisions by 28 users not shown) | |||
Line 1:
{{Data transformation}}
A '''model transformation''', in [[model-driven engineering]], is an automatable way of ensuring that a family of models is consistent, in a precise sense which the software engineer can define. The aim of using a model transformation is to save effort and reduce errors by automating the building and modification of models where possible.▼
▲A '''model transformation''', in [[model-driven engineering]], is an
== Overview ==▼
Model transformations can be thought of as programs that take models as input. There is a wide variety of kinds of model transformation and uses of them, which differ in their inputs and outputs and also in the way they are expressed. ▼
▲== Overview ==
A model transformation usually specifies which models are acceptable as input, and if appropriate what models it may produce as output, by specifying the [[metamodel]] to which a model must conform.▼
▲Model transformations can be thought of as programs that take models as input. There is a wide variety of kinds of model transformation and uses of them, which differ in their inputs and outputs and also in the way they are expressed.
▲A model transformation usually specifies which models are acceptable as input, and if appropriate what models it may produce as output, by specifying the [[Metamodeling|metamodel]] to which a model must conform.
== Classification of model transformations ==
Model transformations and languages for them have been classified in many ways.<ref name="CzarneckiHelsen"/><ref name="Stevens-landscape"/>
Some of the more common distinctions drawn are:
Line 18 ⟶ 19:
=== Endogenous versus exogenous ===
=== Unidirectional versus bidirectional ===
A unidirectional model transformation has only one mode of execution: that is, it always takes the same type of input and produces the same type of output. Unidirectional model transformations are useful in compilation-like situations, where
For a bidirectional model transformation, the same type of model can sometimes be input and other times be output. [[Bidirectional
*bijective transformations, in which there is exactly one model which is consistent with any given model; that is, the consistency relation is bijective. A pair of models is consistent if and only if it is related by the consistency bijection. Both models contain the same information, but presented differently.
*view transformations, in which a concrete model determines a single
It is particularly important that a bidirectional model transformation has appropriate properties to make it behave sensibly
▲*view transformations, in which a concrete model determines a single consistent view model, but the same view model might be produced from many different concrete models. The view model is an abstraction of the concrete model. If the view may be updated, a bidirectional transformation is needed. This situation is known in the database field as view-update. Any concrete model is consistent with its view.
▲It is particularly important that a bidirectional model transformation has appropriate properties to make it behave sensibly, for example, not making changes unnecessarily, or discarding deliberately made changes<ref name="Stevens-properties"/>.
== Languages for model transformations ==
{{Main
A model transformation may be written in a general purpose programming language, but specialised model transformation languages are also available. Bidirectional transformations, in particular, are best written in a language that ensures the directions are appropriately related. The [[Object Management Group|OMG]]-standardised model transformation languages are collectively known as [[QVT]].
In some model transformation languages, for example the [[QVT]] languages, a model transformation is itself a model, that is, it conforms to a metamodel which is part of the model
==See also==
Line 45:
* [[Domain-specific language]] (DSL)
* [[Model transformation language]]
* [[Program refinement|Refinement]]
* [[Transformation (disambiguation)]]
* [[Program transformation]]
Line 60:
| title=Feature-based survey of model transformation approaches
| year=2006
| journal=IBM Systems Journal
| issue=3
| pages=621–645
| citeseerx=10.1.1.124.9674
}}
</ref>
<ref name="Stevens-landscape">
{{Cite
| doi=10.1007/978-3-540-88643-3_10
| last=Stevens
| first=Perdita | title=Generative and Transformational Techniques in Software Engineering II
|author-link=Perdita Stevens
| publisher=[[Springer]] ▼
| volume=5235
|
▲ | publisher=[[Springer Publishing|Springer]]
| year=2008| series=Lecture Notes in Computer Science
| isbn=978-3-540-88642-6
| chapter-url=https://www.research.ed.ac.uk/en/publications/f1706efc-3370-472c-b506-bd65680a04b6
}}
</ref>
Line 79 ⟶ 87:
| doi=10.1007/s10270-008-0109-9
| last=Stevens
| first=Perdita |author-link=Perdita Stevens
| title=Bidirectional model transformations in QVT: semantic issues and open questions
| publisher=[[Springer]] ▼
| year=2010
| journal=Software and Systems Modeling
| pages=7–20
| s2cid=371579
| url=https://www.pure.ed.ac.uk/ws/files/12628301/bidirectional.pdf
}}
</ref>
<ref name="Tisi">
{{Cite
| doi=10.1007/978-3-642-02674-4_3
| last=Tisi
| first=Massimo
| title=Model Driven Architecture - Foundations and Applications
▲ | title=On the Use of Higher-Order Model Transformations
| chapter=On the Use of Higher-Order Model Transformations
▲ | publisher=[[Springer Publishing|Springer]]
| year=2009
| series=LNCS
| volume=5562
| pages=18–33
| journal=Ecmda-Fa '09| isbn=978-3-642-02673-7
}}
</ref>
<ref name="Jakumeit">
{{Cite journal
| doi=10.1016/j.scico.2013.10.009
| last1=Jakumeit
| last2=Buchwald
| last3=Wagelaar
| last4=Dan
| last5=Hegedüs
| last6=Herrmannsdörfer
| last7=Horn
| last8=Kalnina
| last9=Lano
| last10=Lepper
| last11=Rensink
| last12=Rose
| last13=Wätzoldt
| last14=Mazanek
| title=A survey and comparison of transformation tools based on the transformation tool contest
| year=2014
| journal=Science of Computer Programming| volume=85
| pages=41–99
| doi-access=free
}}
</ref>
}}
==Further reading==
* ''Model Driven Software Engineering in Practice'', Marco Brambilla, Jordi Cabot, Manuel Wimmer, foreword by [[Richard Soley]] ([[Object Management Group|OMG]] Chairman), Morgan & Claypool, USA, 2012, Synthesis Lectures on Software Engineering #1. 182 pages. {{ISBN|9781608458820}} (paperback), {{ISBN|9781608458837}} (ebook) http://www.mdse-book.com
[[Category:Systems engineering]]
[[Category:Unified Modeling Language]]
|