Modeltomodel transformation with ATL

59 238 0
Modeltomodel transformation with ATL

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Models transformation is the most important key in Model Driven Architecture (MDA). The first transformation in MDA is Computing Independent Model (CIM) to Platform Independent Model (PIM) transformation, the second is PIM to Platform Specific Model (PSM) transformation. This latter transformation deals the two less abstract levels, PIM and PSM, for that most researchers focused on this kind of transformation. Nevertheless, the top level of abstraction, CIM, and its transformation to PIM is rarely discussed in research topics. Our goal in this paper is to represent an approach that allows mastering transformation from CIM to PIM in accordance with MDA. Our method based on creating a good CIM level, using construction rules, to facilitate the transformation to PIM level. Next, our transformation rules, implemented with Atlas Transformation Language (ATL), ensure a semiautomatic transformation from CIM to PIM. Our approach conforms to MDA, because it allows considering the business dimension in the CIM level, and it allows modelling this latter level by using Business Process Model and Notation (BPMN), this latter is the OMG standard for modelling the business process. However, we founded on UML to model PIM level, because UML is advocated by MDA in PIM. Our proposal results a set of classes, organized according to the Model View Controller (MVC).

Model-to-model Transformation with ATL Frédéric Jouault (INRIA) Brahim-Khalil LOUKIL (INRIA) William Piers (Obeo) © 2008 by INRIA, Obeo; made available under the EPL v1.0 | 17 March 2008 Agenda • Introduction Š Model-To-Model transformation in the MDE field Š M2M vs M2T • ATL Overview Š Available resources: wiki, zoo, newsgroup, use cases, etc Š ATL language description • First exercise: Ecore-To-UML2.1 • Architecture Š Overview Š The new virtual machine: EMF-VM • Second exercise: GMF Diagram Refactoring • Third exercise: Public-To-Private Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 Agenda • Introduction Š Model-To-Model transformation in the MDE field Š M2M vs M2T • ATL Overview Š Available resources: wiki, zoo, newsgroup, use cases, etc Š ATL language description • First exercise: Ecore-To-UML2.1 • Architecture Š Overview Š The new virtual machine: EMF-VM • Second exercise: GMF Diagram Refactoring • Third exercise: Public-To-Private Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 ATL - Description • ATL : ATLAS Transformation Language • ATL is a language and a virtual machine dedicated to model transformation • ATL is an Eclipse Model-to-Model (M2M) component, inside of the Eclipse Modeling Project (EMP) Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 Definitions • A model transformation is the automatic creation of target models from source models • Model transformation is not only about M1 to M1 transformations: Š M1 to M2: promotion, Š M2 to M1: demotion, Š M3 to M1, M3 to M2, etc M3 Metametamodel M2 Metamodel M1 Terminal Model Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 Operational context: small theory conformsTo Metametamodel Class Class conformsTo conformsTo MMa ATL Class Class Green Rule MMb Blue Class Class Red conformsTo Ma Class MMa2MMb.atl Rule Rule R2B G2P Pink conformsTo Mb Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 Operational context of ATL MOF MMa is the source metamodel ATL MMa Ma MMb MMa2MMb.atl Ma is the source model MMB is the target metamodel Mb Mb is the target model Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 M2M vs M2T • M2M: Model To Model transformation Š Abstract syntax to abstract syntax Š Languages: ATL, QVT Operational, QVT Relations • M2T: Model To Text transformation Š Abstract syntax to concrete syntax Š Languages: JET, xPand • TMF: Textual Modeling Framework Š Abstract syntax to and from concrete syntax Š Languages: TCS, xText • This tutorial is focused on M2M Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 Agenda • Introduction Š Model-To-Model transformation in the MDE field Š M2M vs M2T • ATL Overview Š Available resources: wiki, zoo, newsgroup, use cases, etc Š ATL language description • First exercise: Ecore-To-UML2.1 • Architecture Š Overview Š The new virtual machine: EMF-VM • Second exercise: GMF Diagram Refactoring • Third exercise: Public-To-Private Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 ATL history • 1990 : first works on model transformation • 1998 : initial publication for a Ph.D thesis at the University of Nantes • 1998 - 2004 : Implementation Š CARROLL/MOTOR project (CEA, Thales, INRIA) Š Collaborative projects : ModelWare, ModelPlex, OpenEmbeDD • 2004 : Eclipse GMT integration • 2006 : Industrial solution inside of the Eclipse M2M project Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 ATL execution process • steps Š Compilation Š Execution Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 EMF-VM • A new ATL Virtual Machine is now available Š Increased performance Š EMF-only (no wrapping of EObjects) • At this time Š Some missing features (decreasing in number quickly) Š No UML profile support • Non-regression evaluated with a new test plugin Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 Non regression wiki page Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 EMF-VM Benchmarks Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 Agenda • Introduction Š Model-To-Model transformation in the MDE field Š M2M vs M2T • ATL Overview Š Available resources: wiki, zoo, newsgroup, use cases, etc Š ATL language description • First exercise: Ecore-To-UML2.1 • Architecture Š Overview Š The new virtual machine: EMF-VM • Second exercise: GMF Diagram Refactoring • Third exercise: Public-To-Private Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 Second Exercise: GMF Diagram Refactoring • Context: Š GMF (Graphical Modeling Framework) enables graphical concrete syntaxes for models Š Graphical properties (e.g., position, size, color) are stored in a separate Notation model, for instance: ƒ default.uml conforming to the UML metamodel ƒ default.umlclass_diagram conforming the Notation metamodel • Objective: Š Mirroring a Notation model horizontally and vertically • Approach: Š Using an ATL transformation from Notation to Notation Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 GMF Diagram Refactoring: Sample Source Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 GMF Diagram Refactoring: Sample Target Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 GMF Diagram Refactoring • Possible extensions: Š Bendpoints for edges Š Styles (e.g., so that lines appear in the same shade of gray) Š Other kinds of refactorings Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 Agenda • Introduction Š Model-To-Model transformation in the MDE field Š M2M vs M2T • ATL Overview Š Available resources: wiki, zoo, newsgroup, use cases, etc Š ATL language description • First exercise: Ecore-To-UML2.1 • Architecture Š Overview Š The new virtual machine: EMF-VM • Second exercise: GMF Diagram Refactoring • Third exercise: Public-To-Private Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 Third exercise : Public To Private • Context Š Simplified Java metamodel: classes, fields, methods Š Sample Java model: PetriNet • Objective Š Convert public fields into: ƒ Private fields ƒ A getter method ƒ A setter method (if the attribute is changeable, i.e non-final) • Sample Š A classic PetriNet model encoded using the simplified Java metamodel Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 Input model (with public fields) Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 Output model (privatized) Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 Legal Notices • Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc in the United States, other countries, or both • Other company, product, or service names may be trademarks or service marks of others Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 END • Questions or Comments? Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 [...].. .ATL community • Active community Š Š Š Š Š Newsgroup: news://news.eclipse.org/eclipse.modeling.m2m Wiki: http://wiki.eclipse.org /ATL Bugzilla Use cases: http://www.eclipse.org/m2m /atl/ usecases/ Transformations zoo (i.e., a library): http://www.eclipse.org/m2m /atl/ atlTransformations/ • Other links : Š Project page: http://www.eclipse.org/m2m /atl/ Model-To-Model Transformation with ATL | © 2008... from: http://www.eclipse.org/m2m /atl/ atlTransformations/#Class2Relational Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 Example: Class to Relational - Source Metamodel NamedElt +name:String Classifier + type DataType Class + attr Attribute +multivalued:Boolean owner * {ordered } Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made... standard library ƒ Section 11.8: iterator expressions Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 ATL types hierarchy Model-To-Model Transformation with ATL | © 2008 by INRIA, Obeo; made available under the EPL v1.0 Other ATL features: rule inheritance • Rule inheritance, to help structure transformations and reuse rules and patterns: Š A child rule matches... isOrdered

Ngày đăng: 25/12/2016, 13:31

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan