composition and interoperability for external domain
play

Composition and Interoperability for External Domain-Specific - PowerPoint PPT Presentation

Composition and Interoperability for External Domain-Specific Language Engineering Thomas Degueule PhD Defense December 12, 2016 Pr. Mark van den Brand, Eindhoven University of Technology Reviewer Reviewer Pr. Richard Paige, University of


  1. Composition and Interoperability for External Domain-Specific Language Engineering Thomas Degueule PhD Defense December 12, 2016 Pr. Mark van den Brand, Eindhoven University of Technology Reviewer Reviewer Pr. Richard Paige, University of York Examiner Pr. Sandrine Blazy, University of Rennes Examiner Pr. Ralf Lämmel, University of Koblenz-Landau Pr. Bernhard Rumpe, RWTH Aachen University Examiner Pr. Olivier Barais, University of Rennes Advisor Advisor Dr. Arnaud Blouin, INSA Rennes Advisor Dr. Benoit Combemale, University of Rennes

  2. Complex Software-Intensive Systems ▪ Multiple concerns & stakeholders Software ▪ Multi-engineering approach intensive ▪ Software as an integration layer systems Composition and Interoperability for External DSL Engineering 1 / 40

  3. « Perhaps surprisingly, the majority of MDE examples in our Multiple study followed domain-specific Modeling modeling paradigms » Languages The State of Practice in Model-Driven Engineering J. Whittle, J. Hutchinson, and M. Rouncefield In IEEE Software , 2014 Composition and Interoperability for External DSL Engineering 2 / 40

  4. Domain-Specific Languages vs ▪ Abstractions, notations, and tools specifically tailored to the domain ▪ Easier to understand, reason about, and maintain ▪ External DSLs • Carry their own syntax, representation, semantics, environment Composition and Interoperability for External DSL Engineering 3 / 40

  5. Composition and Interoperability for External DSL Engineering 4 / 40

  6. UML vs. Classical vs. Rhapsody Statecharts: Not All Models are Created Equal Michelle L. Crane, Jürgen Dingel In Software & Systems Modeling (SoSyM), 2007 Composition and Interoperability for External DSL Engineering 5 / 40

  7. Composition and Interoperability for External DSL Engineering 6 / 40

  8. SLE Challenges ▪ ▪ Reduce development costs Foster model sharing and collaboration ▪ ▪ Avoid engineering DSLs from scratch Manipulate models in different environments ▪ ▪ Reuse & customize existing DSLs Reuse tools and services Language Composition Language Interoperability Composition and Interoperability for External DSL Engineering 7 / 40

  9. State of the Art MontiCore DeLara’s concepts MetaMod Spoofax LISA a non-intrusive and tool-supported approach to composition and interoperability for SLE applicable to legacy DSLs Composition and Interoperability for External DSL Engineering 8 / 40

  10. Outline of the Contributions Composition and Interoperability for External DSL Engineering 9 / 40

  11. On Language Interfaces On Language Interfaces Thomas Degueule, Benoit Combemale and Jean-Marc Jézéquel In PAUSE: Present And Ulterior Software Engineering, 2017 Ed. Bertrand Meyer and Manuel Mazzara Composition and Interoperability for External DSL Engineering

  12. On Language Interfaces – Flexible Modeling – Modular Development of DSLs – Melange Composition and Interoperability for External DSL Engineering 10 / 40

  13. On Language Interfaces – Flexible Modeling – Modular Development of DSLs – Melange Composition and Interoperability for External DSL Engineering 10 / 40

  14. On Language Interfaces – Flexible Modeling – Modular Development of DSLs – Melange Composition and Interoperability for External DSL Engineering 10 / 40

  15. On Language Interfaces – Flexible Modeling – Modular Development of DSLs – Melange Composition and Interoperability for External DSL Engineering 10 / 40

  16. On Language Interfaces – Flexible Modeling – Modular Development of DSLs – Melange Variants or subsequent versions cannot leverage previous engineering efforts Composition and Interoperability for External DSL Engineering 10 / 40

  17. On Language Interfaces – Flexible Modeling – Modular Development of DSLs – Melange v2.1 How to ensure interoperability between v2.4 subsequent versions? Composition and Interoperability for External DSL Engineering 10 / 40

  18. On Language Interfaces – Flexible Modeling – Modular Development of DSLs – Melange How to foster model sharing between similar environments? Composition and Interoperability for External DSL Engineering 10 / 40

  19. On Language Interfaces – Flexible Modeling – Modular Development of DSLs – Melange Software Language Interfaces ▪ Abstract over the intrinsic complexity of language implementations ▪ Expose meaningful information • Concerning an aspect of a language (e.g. abstract syntax) • For a given purpose (e.g. composition, coordination, analysis) • In an appropriate formalism (e.g. a metamodel, a control-flow graph) ▪ Provide a reasoning layer atop language implementations Tools & Transfos «implements» Language Language Implementations Interfaces Language interfaces in the wild: micro-grammars (Brown et al.), concepts (De Lara et al.), Microsoft LSP, etc. Composition and Interoperability for External DSL Engineering 11 / 40

  20. On Language Interfaces – Flexible Modeling – Modular Development of DSLs – Melange Software Language Interfaces 1. Ease the definition and reuse of services 2. Enable language coordination 3. Enable language composition ▪ A concrete application: language families Leveraging Software Product Lines Engineering in the Development of External DSLs: A Systematic Literature Review David Méndez-Acuña, José A. Galindo, Thomas Degueule, Benoit Combemale and Benoit Baudry In Computer Languages, Systems and Structures (COMLAN), 2016 Composition and Interoperability for External DSL Engineering 12 / 40

  21. Safe Model Polymorphism for Flexible Modeling Safe Model Polymorphism for Flexible Modeling Thomas Degueule, Benoit Combemale, Arnaud Blouin, Olivier Barais and Jean-Marc Jézéquel In Computer Languages, Systems and Structures (COMLAN), 2016 Composition and Interoperability for External DSL Engineering

  22. On Language Interfaces – Flexible Modeling – Modular Development of DSLs – Melange Limits of the Conformance Relation ▪ In MDE, a metamodel is the cornerstone artifact defining a DSL ▪ The conformance relation states • Which models are valid instances of a given DSL • How these models must be manipulated wrt. this DSL ▪ Theoretical limitations (literature review) 1. Conformance is based on instantiation 2. Conformance is nominal 3. A model conforms to one and only one metamodel Composition and Interoperability for External DSL Engineering 13 / 40

  23. On Language Interfaces – Flexible Modeling – Modular Development of DSLs – Melange Limits of the Conformance Relation ▪ In MDE, a metamodel is the cornerstone artifact defining a DSL ▪ The conformance relation states • Which models are valid instances of a given DSL • How these models must be manipulated wrt. this DSL ▪ Analyze UML models publicly available on Github ▪ Conforming to the UML implementation of Eclipse ▪ 1651 models – UML2.2 to UML2.5 ▪ Force to bypass the conformance check ▪ Key findings • 7% of the models are valid wrt. only one version of UML • 83% of the models are valid wrt. every version of UML Composition and Interoperability for External DSL Engineering 13 / 40

  24. On Language Interfaces – Flexible Modeling – Modular Development of DSLs – Melange Flexible Modeling beyond the Conformance Relation ▪ Conformance relation ensures safe manipulation regardless of context ▪ But it hinders flexibility Composition and Interoperability for External DSL Engineering 14 / 40

  25. On Language Interfaces – Flexible Modeling – Modular Development of DSLs – Melange Flexible Modeling beyond the Conformance Relation ▪ Conformance relation ensures safe manipulation regardless of context ▪ But it hinders flexibility Model Polymorphism Composition and Interoperability for External DSL Engineering 14 / 40

  26. On Language Interfaces – Flexible Modeling – Modular Development of DSLs – Melange Flexible Modeling beyond the Conformance Relation ▪ Model types as structural interfaces atop language implementations ▪ Manually written ▪ Inferred from a language ▪ Inferred from a footprint implements @ Aspect ( cl assN am e = FSM ) cl ass Execut abl eFSM { St at e cur r ent … def voi d execut e( ) { _sel f . st at es. f or Each } } Composition and Interoperability for External DSL Engineering 15 / 40

  27. On Language Interfaces – Flexible Modeling – Modular Development of DSLs – Melange Model Subtyping ▪ States whether models typed by a given MT can be substituted to models typed by another MT ▪ Different subtyping relations [1] • Total isomorphic • Partial isomorphic • Total non-isomorphic • Partial non-isomorphic ▪ Up to behavioral substitutability [2] ▪ The choice of a subtyping relation vary with particular needs [1] On model subyping , Guy et al., ECMFA , 2012 [2] Using model types to support contract-aware model substitutability , Sun et al., ECMFA , 2012 Composition and Interoperability for External DSL Engineering 16 / 40

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend