uml to code with acceleo
DESCRIPTION
UML to Code Transformation using Acceleo Introduction to Papyrus Eclipse modeling Tooling ComponentsTRANSCRIPT
![Page 1: Uml to code with acceleo](https://reader035.vdocuments.net/reader035/viewer/2022081507/554fb7bab4c9050e7d8b469a/html5/thumbnails/1.jpg)
UML to code with AcceleoTarun TelangDecember 12, 2011 Public
![Page 2: Uml to code with acceleo](https://reader035.vdocuments.net/reader035/viewer/2022081507/554fb7bab4c9050e7d8b469a/html5/thumbnails/2.jpg)
© 2011 SAP AG. All rights reserved. 2Public
Agenda
Motivation
Acceleo
• Introduction
• Download & Installation
• Demo
Papyrus
• Introduction
• Download & Installation
• Demo
![Page 3: Uml to code with acceleo](https://reader035.vdocuments.net/reader035/viewer/2022081507/554fb7bab4c9050e7d8b469a/html5/thumbnails/3.jpg)
© 2011 SAP AG. All rights reserved. 3Public
Motivation
Software Development has become a very diverse field
• Large number of platforms (Windows, Mac OSX, Linux, … )
• Large number of devices (PCs, Smart phones, Tablets … )
• Large number of frameworks (Java, .NET, SAP, Adobe Flash, … )
• Large number of delivery channels ( Cloud, Mobile, Browser, Market places .. )
• Large number of languages ( Java, C#, ABAP, Python, C/C++, Objective C … )
![Page 4: Uml to code with acceleo](https://reader035.vdocuments.net/reader035/viewer/2022081507/554fb7bab4c9050e7d8b469a/html5/thumbnails/4.jpg)
© 2011 SAP AG. All rights reserved. 4Public
Importance of Model Driven Development
Software Companies
• Reduce cost of Development.
• Increase speed of Software Development.
• Improve Developer Productivity.
Developer
• No Need to learn/unlearn different technology.
![Page 5: Uml to code with acceleo](https://reader035.vdocuments.net/reader035/viewer/2022081507/554fb7bab4c9050e7d8b469a/html5/thumbnails/5.jpg)
Acceleo
![Page 6: Uml to code with acceleo](https://reader035.vdocuments.net/reader035/viewer/2022081507/554fb7bab4c9050e7d8b469a/html5/thumbnails/6.jpg)
© 2011 SAP AG. All rights reserved. 6Public
Acceleo
An eclipse based model (e.g. UML2, Ecore, SysML.. ) to text (e.g. code, documentation, tests .. ) transformation tool. (http://www.eclipse.org/acceleo/).
Acceleo is the result of several man-years of R&D started in the French company Obeo.
Features:
1. Model to Code Generation
2. Low Learning Curve : using the provided example projects and the powerful completion feature of the Acceleo editor, it is very easy to get started and understand the basic principles.
3. Simple Syntax
![Page 7: Uml to code with acceleo](https://reader035.vdocuments.net/reader035/viewer/2022081507/554fb7bab4c9050e7d8b469a/html5/thumbnails/7.jpg)
© 2011 SAP AG. All rights reserved. 7Public
Acceleo Template
[template public classToJava(c : Class)]
class [c.name/]
{
// Constructor
[c.name/]()
{
}
}
[/template]
class Employee
{
// Constructor
Employee ()
{
}
}
![Page 8: Uml to code with acceleo](https://reader035.vdocuments.net/reader035/viewer/2022081507/554fb7bab4c9050e7d8b469a/html5/thumbnails/8.jpg)
© 2011 SAP AG. All rights reserved. 8Public
Installing Acceleo
![Page 9: Uml to code with acceleo](https://reader035.vdocuments.net/reader035/viewer/2022081507/554fb7bab4c9050e7d8b469a/html5/thumbnails/9.jpg)
Papyrus
![Page 10: Uml to code with acceleo](https://reader035.vdocuments.net/reader035/viewer/2022081507/554fb7bab4c9050e7d8b469a/html5/thumbnails/10.jpg)
© 2011 SAP AG. All rights reserved. 10Public
Papyrus
An eclipse based graphical (or textual) modeling tool (http://www.eclipse.org/modeling/mdt/papyrus/).
Features:
1. Papyrus is graphical editing tool for UML2 as defined by OMG.
2. Every part of Papyrus may be customized: model explorer, diagram editors, property editors, etc.
3. Papyrus provides also a complete support to SysML in order to enable model-based system engineering.
4. It is possible to edit model elements using contextual text editors enabling syntax highlight, completion and content assist.
![Page 11: Uml to code with acceleo](https://reader035.vdocuments.net/reader035/viewer/2022081507/554fb7bab4c9050e7d8b469a/html5/thumbnails/11.jpg)
© 2011 SAP AG. All rights reserved. 11Public
Installing Papyrus