1 / 7

SENG 422 Lab 3 Architecture Transformation and Discovery

SENG 422 Lab 3 Architecture Transformation and Discovery. Time: ELW B220 from (4:00 - 6:50) every Tuesday TA: Philip Baback Alipour Ph.D. Candidate in Electrical, Computer Engineering and Quantum Physics, Dept. of Electrical and Computer Engineering, University of Victoria, CA

reula
Download Presentation

SENG 422 Lab 3 Architecture Transformation and Discovery

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 Architecture Transformation and Discovery • Time: ELW B220 from (4:00 - 6:50) every Tuesday TA: Philip Baback Alipour Ph.D. Candidate in Electrical, Computer Engineering and Quantum Physics, Dept. of Electrical and Computer Engineering, University of Victoria, CA • Email:philipbaback_orbsix@msn.com • Office:ELW Room # A358

  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 • Open MagicDraw UML (Alternatively, Argo UML) • Create a small class diagram from lab 2 .ppt slides • Right click on “Code Engineering Sets” (in Argo UML after creating one, under generations click generate code for all (classes), tick out the languages you want to generate your code in) • Create a new set • Right click your new set • Click “Add Data from Model”

  4. Round Trip Engineering using MagicDraw UML cont 7. Select the classes you wish to auto-generate 8. Expand the new File View set and see your generated code. 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 with the code. We can do that by performing the following: • Generate the code • Link the generated code to the class

  6. Reverse Engineering from Code cont You can now make changes to your source files and these changes will be reflected in the model itself.

  7. Lab Exercise 1. Import the diagrams you’ve created for the project 2. Generate source code for this class diagram. 3. Make changes to the source code by adding some methods. 4. Import the changes into the model.

More Related