Presentation is loading. Please wait.

Presentation is loading. Please wait.

Mapping Designs to Code Larman, Chapter 20 CSE432 Object Oriented Software Engineering.

Similar presentations


Presentation on theme: "Mapping Designs to Code Larman, Chapter 20 CSE432 Object Oriented Software Engineering."— 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 OOA/D artifacts feed into implementation model in a traceable manner Some tools generate partial code from UML Some tools generate partial code from UML But programming not trivial generation! But programming not trivial generation! Programmers make changes as the work out the details Programmers make changes as the work out the details Therefore, Expect and plan for change and deviation from design during programming Therefore, Expect and plan for change and deviation from design during programming

3 Mapping Designs to Code Write source code for: Write source code for: –Class and interface definitions –Method definitions Work from OOA/D artifacts 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 Fig. 20.5 What collection class has been added to the design and why?

7 Exception handling Why is it wise to consider large-scale exception handling strategies during design modeling? 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 In UML, exceptions can be inserted as property strings of messages

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


Download ppt "Mapping Designs to Code Larman, Chapter 20 CSE432 Object Oriented Software Engineering."

Similar presentations


Ads by Google