Book a Demo

Author Topic: Code Generation  (Read 3974 times)

Jens_Arpe

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Code Generation
« on: September 01, 2011, 08:14:08 pm »
Hi,

atm I am doing my thesis on automatic code generation.  I still got 1 unanswered question thou and I haven't found any solution yet.

Can I generate the whole code for my project after modelling it in Enterprise Architect? Or is it only possible to generate some of the code and I still would have to do parts of the implementation by hand?

best regards Jens

Thomas_Arnbjerg

  • EA User
  • **
  • Posts: 80
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Code Generation
« Reply #1 on: September 01, 2011, 09:16:37 pm »
You can't generate everything (including the business logic) unless there is no domain specific functionality to implement.

You CAN generate the entire structure of the application (the declarations).

Jens_Arpe

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Code Generation
« Reply #2 on: September 01, 2011, 09:28:35 pm »
thx for your reply! That was what I thought. But I found this pdf here http://www.sparxsystems.com/downloads/ebooks/Embedded_Systems_Development_using_SysML.pdf  saying:

Quote
In addition to its long-standing ability to generate code for software classes, Enterprise
Architect supports generation of code from three UML behavioral modeling behavioral
paradigms:
• State Machine diagrams
• Interaction diagrams
• Activity diagrams

There it seems as if they modeled more then just the structure of the application.

Thomas_Arnbjerg

  • EA User
  • **
  • Posts: 80
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Code Generation
« Reply #3 on: September 02, 2011, 12:15:47 am »
Not really. The code generation from the behavioral models just generates standard code constructs according to the diagram type - exactly the same principle as for class diagrams.

That being said it's a whole lot better than when every developer invents his own design.

One important thing to keep in mind though is that the in order to do model driven development efficiently a clear interface between model generated elements and hand written elements should exist. Ideally it should be possible to reshape the entire application structure by changing code templates (and MDA transformations). But thats a different story for another day.

PaulH

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Code Generation
« Reply #4 on: September 04, 2011, 08:12:12 pm »
Any chance of a link to it once you've finished?