1 / 7

SENG 422 Lab 3

SENG 422 Lab 3. In the last lab we did a brief overview of Design Patterns and of Linux Screen. For this lab search the internet and find a design pattern you can replicate by using a UML diagram, any of your choice.

Download Presentation

SENG 422 Lab 3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SENG 422 Lab 3 In the last lab we did a brief overview of Design Patterns and of Linux Screen. For this lab search the internet and find a design pattern you can replicate by using a UML diagram, any of your choice. You will then use your diagram to generate code using MagicDraw UML code generation.

  2. SENG 422 Lab 3 Round Trip Engineering Round Trip Engineering: A way of attempting to synchronize source code, models and other information as development progress. When designing a system it's inevitable that we will want to alter our design and our code. If we use a set of Round Trip Engineering tools we can keep them both synchronized, allow us to update the model and move those changes into generated code and conversely if we change the code, we will see these changes reflected in the model.

  3. Round Trip Engineering using MagicDraw UML 1. Open MagicDraw UML 2. Create a small class diagram of your chosen pattern. 3. Right click on “Code Engineering Sets” 4. Create a new set 5. Right click your new set 6. Click “Add Data from Model” or just Drag and Drop from the browser 7. Select the classes you wish to auto-generate 8. Expand the new File View set and see your generated code.

  4. Round Trip Engineering using MagicDraw UML cont 9. Right click on your Engineered code set and click “Generate”. 10. Set a working directory output for all generated files. 11. Open your code to see the output from the generation

  5. Reverse Engineering from Code MagicDraw UML allows us to sync the model and the code. We can do that by performing the following: 1. When auto generating code as above select the following option:

  6. Reverse Engineering from Code cont You can now make changes to your source files. When you auto-generate your code your changes will be imported into your model, you will see them reflected.

  7. Lab Assignment Send me your source UML diagram and your source code zipped. As proof you went through the exercise. * If you run into difficulties consult the following: http://www.magicdraw.com/files/viewlets/MD_125_viewlets_CodeGeneration_viewlet_swf.html

More Related