210 likes | 308 Views
This article discusses how Model Driven Architecture (MDA) can assist in designing Embedded Systems, focusing on reducing cost and time to market. It delves into the MDA major steps, transformation tools, and the Transformation Engine, ModTransf. It outlines the usage and features of ModTransf, including its rules, XML-based structure, and example transformation process. The benefits of MDA, such as expressing transformations at the metamodel level and ease of testing hardware-software combinations, are highlighted. The conclusion emphasizes the importance of designing domain-specific metamodels, creating models for transformation, writing transformation rules, and utilizing ModTransf for effective transformation. Thank you for your attention.
E N D
MDA Transformations Lossan BONDE Université des Sciences et Technologies de Lille 59655 Villeneuve d’Ascq, France bonde@lifl.fr
Content • Context & Methodology • Motivations & objectives • Methodology • MDA (Model Driven Architecture) • PIM (Plateform Independant Model) • PSM (Plateform Specific Model) • Transformations in Gaspard • Metamodels • Transformation Engin : ModTransf • Rules • An Example • Conclusion
Motivations & Objectives • Two particularities of Embedded Systems. • Dedicated to specific tasks. • Availability of a wide range of processors and processor architectures. • Reduce Cost & Time to market. • How can MDA help in designing Embedded Systems ?
MDA Major Steps Transformation Tool Transformation Tool PIM PSM Code
MDA Basic Framework Metamodel Transformation Definition Metamodel isInstanceOf isInstanceOf usedBy Transformation Engine PIM Model PSM Model
MDA Transformations In Gaspard Project
Metamodels • Definition of a metamodel for: • Application • Architecture • Association • TLM Metamodel (see Arnaud’s presentation)
Transformation Engine : modTransf (1/2) • Based on the QVT proposals • Features • Multi models as inputs and outputs • Different kind of models: MOF and JMI,XML with schema, graph of objects • Can be Customized • Available for free download at: www.lifl.fr/~dumoulin/mdaTransf/
Transformation Engine : modTransf (2/2) rules rules ModTransf model model model model
Transformation rules • XML based • Express how input metamodel concepts are transformed into output metamodel concepts • Structure of a rule • Guard : condition under which the rule is applied • Action : describes the transformation
guard Create action XML Rule : An example src target
Code Mapping Data Mapping Association
What have we gained from the MDA • Transformations are expressed at the metamodels level • Use of the same transformation rules as long as the metamodels remain unchanged • Ease of testing differents combinaisons of hardware software • Multi-plateforms • Inter-operability
PIM Transformation Transformation PSM PSM Bridge PSM Transformation Transformation Code Bridge Code Code Interoperability
Conclusion • Our proposal • Design the metamodels (domain specific) : both input and output • Create the models (instances of metamodels) to transform. • Write the rules for transformation • Transform with ModTransf