Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Generate From Behavioral Models

Notes: |
|
Enterprise Architect's system engineering capability facilitates code generation from each of the following UML behavioral diagrams:
- State Machine diagrams (SW & HW)
- Interaction (Sequence) diagrams (SW)
- Activity diagrams (SW).
You can generate code in various software and hardware languages, including C(OO), C++, C#, Java, VB.Net, VHDL, Verilog and SystemC.
To experiment with code generation from these diagrams, use the EAExample project provided with your Enterprise Architect installer, as follows:
- Open the EAExample.eap file by selecting the Help | Open Example Model menu option.
- From the Project Browser, select any of the following packages:
Software Language Examples:
- Project Models > System Model > Implementation Model (PSM) > Java Model With Behaviors. Generate the Account and Order classes.
- Project Models > Systems Engineering Model > Implementation Model > Software > C#. Generate the DataProcessor Class.
- Project Models > Systems Engineering Model > Implementation Model > Software > C++. Generate the IO Class.
- Project Models > Systems Engineering Model > Implementation Model > Software > Java. Generate the IO Class.
- Project Models > Systems Engineering Model > Implementation Model > Software > VBNet. Generate the IO Class.
Hardware Language Examples:
- Project Models > Systems Engineering Model > Implementation Model > Hardware > SystemC. Generate the PlayBack Class.
- Project Models > Systems Engineering Model > Implementation Model > Hardware > VHDL. Generate the PlayBack Class.
- Project Models > Systems Engineering Model > Implementation Model > Hardware > Verilog. Generate the PlayBack Class.
- When completed, press [Ctrl]+[E] to open the generated source code. You should see methods generated in the code.
The material ("material" includes all pages, documents and on-line graphics) on this web site is protected by copyright law. (C) 1998-2010 Sparx Systems Pty Ltd.