ArticleslgStudy

computer science

Acceleo

Acceleo is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Acceleo rather than just read about it. In short: Acceleo is an open-source code generator from the Eclipse Foundation that allows people to use a model-driven approach to building applications. It is an implementation of the "MOFM2T" standard, from the Object Management Group (OMG), for performing model-to-text transformation.

Acceleo — main illustration
Acceleo — illustration

Key takeaways

  • Acceleo belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Acceleo to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Acceleo from memory before moving on to harder problems.

Reference excerpt

Acceleo is an open-source code generator from the Eclipse Foundation that allows people to use a model-driven approach to building applications. It is an implementation of the "MOFM2T" standard, from the Object Management Group (OMG), for performing model-to-text transformation.

History and development

Early versions The Acceleo project is born in 2006 with the website Acceleo.org. Acceleo 1.0 was licensed under the GNU Public Licence (GPL) and it was compatible with Eclipse 3.0, 3.1 and several modelers based on EMF and UML 1.2. A few weeks later, Acceleo 1.1 brought the compatibility with Eclipse 3.2 and UML 1.3. Acceleo changed its licence with the release of Acceleo 1.2 to adopt the Eclipse Public Licence (EPL) used by the projects of the Eclipse Foundation. Acceleo 2 was available on June 5, 2007, after the launch of the website planet.acceleo.org which includes articles created by the members of the Acceleo community and the Acceleo modules repository which contains code generators based on Acceleo 2.

Entrance in the Eclipse Foundation In 2009, while moving to Acceleo 3, the project has been accepted in the Eclipse Foundation. During this transition, the language used by Acceleo to define a code generator has been changed to use the new standard from the OMG for model to text transformation, MOFM2T. With the release of Eclipse 3.6 Helios, Acceleo is included in the Eclipse simultaneous release train as an official project of the Eclipse Foundation. Acceleo is an Eclipse plugin and as such it is integrated in the Eclipse IDE. Acceleo is built on top of several key Eclipse technologies like EMF and, since the release of Acceleo 3, the Eclipse implementation of OCL. OCL is a standard language from the OMG to navigate in models and to define constraints on the elements of a model.

Trademark While the Acceleo source code is open source, the Acceleo trademark and its logo, integrated in Acceleo, are not open source. They were the trademark of the company Obeo, creator of Acceleo, and they were transferred to the Eclipse Foundation when Acceleo was accepted as an official project.

Source code Acceleo is an Eclipse project mostly developed in Java and available under the Eclipse Public Licence (EPL). The source code of Acceleo 1.x and 2.x is available on SVN on the website of the OW2 Consortium. With its entrance in the Eclipse Foundation in 2009, the source code of Acceleo 3 was transferred from SVN to a CVS based repository on the servers of the Eclipse Foundation. After the release of Eclipse 3.7 Indigo in 2011, the Acceleo project has migrated to Git following the migration started by several official project of the Eclipse Foundation and since July 2011, the Acceleo source code is available on GitHub.

Releases First stable release: Acceleo 1.0.0 available since 1 April 2006

Supported platforms Acceleo is written in Java and is deployed as a plugin in the Eclipse IDE. Acceleo is supported on Java 5+ based environments, on the following platforms:

Linux macOS Windows XP, Windows Vista, Windows 7

The language Starting with Acceleo 3, the language used to define an Acceleo code generator is an implementation of the MOFM2T standard. This code generation language uses a template based approach. With this approach, a template is a text containing dedicated part where the text will be computed from elements provided by the inputs models. Those dedicated parts are most of the time expressions specified on the entity of the input models used to select and extract information from those models. Within Acceleo, those expression are based on the Eclipse implementation of the OCL language.

Features Acceleo provides tools for code generation from EMF based models. Thanks to those tools, Acceleo allows, for example, incremental generation. Incremental generation gives people the ability to generate a piece of code and then modify the generated code and finally regenerating the code once again without losing the previous modifications. Acceleo also allows:

code generation from any kind of metamodel compatible with EMF like UML 1, UML 2 and even custom metamodels (DSLs) customization of the generation with user defined templates generation of any textual language (C, Java, Python, etc.)

Editor Acceleo contains a code generation modules editor with syntax highlighting, completion, real time error detection and refactoring.

Debugger The Acceleo debugger gives the possibility to keep an eye on the progression of a generation. It let the user pause a generation with a break point, check the state of the variables and move step by step during a generation to identify problems.

Profiler The profiler allow the user to figure out all the instructions executed during the generation, the number of time that those instructions have been executed and the time taken by each of those instructions. Profiling data are available in an EMF models after a generation launched with the profiler. It gives the user the ability to find bottleneck in the code generator created.

Traceability The Acceleo engine can compute traceability information of all the elements involved in the generation of a file. This system allows, for example, to determine the elements from the input models that have been used to generate a specific piece of text and the part of the code generator that has been involved.

Stand-alone use The parser and the generation engine, critical components of Acceleo, can also be used in "stand-alone", without being deployed on Eclipse. Acceleo generates a Java class to launch the generation programmatically thus allowing the integration of an Acceleo generator in any Java application. This Java launcher can also be called from Ant or Maven.

Compatibility The latest release of Acceleo is compatible with:

Stand alone Java 6 runtime Eclipse 3.7 Indigo Eclipse 3.8 Juno Eclipse 4.3 Kepler Eclipse 4.4 Luna Eclipse 4.5 Mars Eclipse 4.6 Neon Acceleo is based on the modeling framework EMF. Thus it is compatible with any tool that can produce EMF compatible models.

Example Acceleo can use any EMF compatible models defined from any kind of metamodel like UML or even a custom DSLs. From this metamodel, the user can define a code generator that will produce any kind of textual language from a model using the metamodel.

… excerpt ends here. Continue reading the full article.

Illustrations

Acceleo illustration
Acceleo illustration
Acceleo illustration
Acceleo illustration
Acceleo: A simple EMF model
A simple EMF model

Worked examples

Example 1 — a first encounter with Acceleo

Start with the simplest possible case. Write down what Acceleo claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Acceleo before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Acceleo ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Acceleo

In research
Acceleo appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Acceleo in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Acceleo is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2006 software, Eclipse (software), Free UML tools, so understanding it makes those chapters shorter.
In everyday life
Look for Acceleo outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Acceleo” →

How to study Acceleo in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Acceleo means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Acceleo out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Acceleo in simple terms?

Acceleo is an open-source code generator from the Eclipse Foundation that allows people to use a model-driven approach to building applications. It is an implementation of the "MOFM2T" standard, from the Object Management Group (OMG), for performing model-to-text transformation.

Why does Acceleo matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Acceleo?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Acceleo.

Tags

  • 2006 software
  • Eclipse (software)
  • Free UML tools
  • UML tools

Keep exploring