UML to code with Acceleo
Tarun Telang
December 12, 2011          Public
Agenda

Motivation

Acceleo
•    Introduction
•    Download & Installation
•    Demo

Papyrus

•    Introduction

•    Download & Installation

•    Demo

© 2011 SAP AG. All rights reserved.            2
                                      Public
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…)



    © 2011 SAP AG. All rights reserved.                                      3
                                                                    Public
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.



© 2011 SAP AG. All rights reserved.                           4
                                                     Public
Acceleo
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



© 2011 SAP AG. All rights reserved.                                              6
                                                                        Public
Acceleo Template


[template public classToJava(c :
Class)]
                                      class Employee
class [c.name/]
                                      {
  {
                                            // Constructor
                 // Constructor
                                            Employee ()
                 [c.name/]()
                                            {
                 {
                                            }
                 }
                                      }
}

[/template]

© 2011 SAP AG. All rights reserved.                                   7
                                                             Public
Installing Acceleo




© 2011 SAP AG. All rights reserved.            8
                                      Public
Papyrus
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.



© 2011 SAP AG. All rights reserved.                                             10
                                                                       Public
Installing Papyrus




© 2011 SAP AG. All rights reserved.            11
                                      Public
Thank You!


Contact information:

Tarun Telang
tarun.telang@gmail.com

Uml to code with acceleo

  • 1.
    UML to codewith Acceleo Tarun Telang December 12, 2011 Public
  • 2.
    Agenda Motivation Acceleo • Introduction • Download & Installation • Demo Papyrus • Introduction • Download & Installation • Demo © 2011 SAP AG. All rights reserved. 2 Public
  • 3.
    Motivation Software Development hasbecome 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…) © 2011 SAP AG. All rights reserved. 3 Public
  • 4.
    Importance of ModelDriven Development Software Companies • Reduce cost of Development. • Increase speed of Software Development. • Improve Developer Productivity. Developer • No Need to learn/unlearn different technology. © 2011 SAP AG. All rights reserved. 4 Public
  • 5.
  • 6.
    Acceleo An eclipsebased 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 © 2011 SAP AG. All rights reserved. 6 Public
  • 7.
    Acceleo Template [template publicclassToJava(c : Class)] class Employee class [c.name/] { { // Constructor // Constructor Employee () [c.name/]() { { } } } } [/template] © 2011 SAP AG. All rights reserved. 7 Public
  • 8.
    Installing Acceleo © 2011SAP AG. All rights reserved. 8 Public
  • 9.
  • 10.
    Papyrus An eclipsebased 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. © 2011 SAP AG. All rights reserved. 10 Public
  • 11.
    Installing Papyrus © 2011SAP AG. All rights reserved. 11 Public
  • 12.
    Thank You! Contact information: TarunTelang tarun.telang@gmail.com