1 / 8

Mapping Designs to Code

Mapping Designs to Code. Larman, Chapter 20 CSE432 Object Oriented Software Engineering. OO development is iterative. OOA/D artifacts feed into implementation model in a traceable manner Some tools generate partial code from UML But programming not trivial generation!

tausiq
Télécharger la présentation

Mapping Designs to Code

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. Mapping Designs to Code Larman, Chapter 20 CSE432 Object Oriented Software Engineering

  2. OO development is iterative • OOA/D artifacts feed into implementation model in a traceable manner • Some tools generate partial code from UML • But programming not trivial generation! • Programmers make changes as the work out the details • Therefore, Expect and plan for change and deviation from design during programming

  3. Mapping Designs to Code • Write source code for: • Class and interface definitions • Method definitions • Work from OOA/D artifacts • Create class definitions for Domain Class Diagrams (DCDs) • Create methods from Interaction diagrams

  4. From DCD to Java class Fig. 20.1

  5. From Interaction diagram to method Fig. 20.4

  6. Collection classes What collection class has been added to the design and why? Fig. 20.5

  7. Exception handling • Why is it wise to consider large-scale exception handling strategies during design modeling? • In UML, exceptions can be inserted as property strings of messages

  8. Why implement from least-coupled to most-coupled? Fig. 20.7

More Related