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
Using Enterprise Architect's system engineering capability, you can generate code in various software (SW) and hardware (HW) languages, including C(OO), C++, C#, Java, VB.Net, VHDL, Verilog and SystemC, from these UML behavioral diagrams:
· | State Machine diagrams (SW & HW) |
· | Interaction (Sequence) diagrams (SW) |
· | Activity diagrams (SW) |
Generate code from behavioral diagrams using the EAExample project
Step |
Action |
See also |
||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 |
Open the EAExample.eap file by selecting the Help | Open Example Model menu option.
|
|
||||||||||||||||
2 |
From the Project Browser, select any of the following Packages:
Hardware Language Examples:
|
|
||||||||||||||||
3 |
When completed, press Ctrl+E to open the generated source code. You should see methods generated in the code.
|
|
Notes
· | Software code generation from behavioral models is available in the Business and Software Engineering, Systems Engineering and Ultimate editions of Enterprise Architect |
· | Hardware code generation from State Machine models is available in the Systems Engineering and Ultimate editions of Enterprise Architect |
· | For C(OO), on the C Specifications page of the Options dialog set the Object Oriented Support option to True |
· | To be able to generate code from behavioral models, all behavioral constructs should be contained within a Class |
· | Code synchronization is not supported for behavioral code |
Learn more
Learning Center topics
· | (Alt+F1) | Enterprise Architect | Software Engineering | Behavioral Code Generation |
The material ("material" includes all pages, documents and on-line graphics) on this web site is protected by copyright law. (C) 1998-2015 Sparx Systems Pty Ltd.