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

Slides:



Advertisements
Similar presentations
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design 1.
Advertisements

Object-Oriented Analysis and Design Introduction 1.
A Brief Introduction. Acknowledgements  The material in this tutorial is based in part on: Concurrency: State Models & Java Programming, by Jeff Magee.
Chap 1 UML vs Thinking in Objects! – Visual modeling Learning UML – Look at the book examples – Alan Holub’s UML reference card – Use library resources.
Chapter 1 Object Oriented Analysis and Design. UML, Patterns, and Object-Oriented Analysis and Design  The essential skills for the creation of well-designed,
Introduction To System Analysis and Design
Copyright W. Howden1 Lecture 8: O/O Programming. Copyright W. Howden2 Topics OO Programming Languages Developing programs from Designs –Class and method.
Dr. Kivanc DincerCS319 Week 11 - Nov.21,20051 Chapter 20 Mapping Designs to Code Objectives Map design artifacts to code in an object-oriented language.
Lecture #4 Agenda Cell phones off & name signs out Review Questions? Objects The birds-and-the-bees talk.
Fall 2005CSE 115/503 Introduction to Computer Science I1 Lecture #4 Agenda Announcements Review Questions? Classes and objects UML class diagrams Creating.
Interaction Models. Interaction Definition An interaction is a behavior that comprises a set of messages exchanged among a set of objects within a context.
Object Oriented Analysis and Design Chapter 1 Applying UML and Patterns -Craig Larman.
R R R CSE870: Advanced Software Engineering: Cheng (Sp 2001)CSE870: Advanced Software Engineering: Cheng (Sp 2001)1 Mini Project An Overview.
Week 3 Iteration 1 Domain Models System Sequence Diagrams.
ACM/JETT Workshop - August 4-5, 2005 UML Modeling using MagicDraw UML for Java Programmers.
Designing with Interaction and Design Class Diagrams Chapters 15 & 16 Applying UML and Patterns Craig Larman With some ideas from students in George Blank’s.
The Design Discipline.
BCS 2143 Introduction to Object Oriented and Software Development.
IntellAgile Copyright © 2002 Craig Larman. All rights reserved. Craig Larman’s Applying UML and Patterns: Hands-on Mastery of OOA/D.
1. 2  Have a basic understanding of the fundamental principles of object-oriented software development.  Understand a selection of the design patterns.
BTS430 Systems Analysis and Design using UML Domain Model Part 1—Finding Conceptual Classes.
12 Systems Analysis and Design in a Changing World, Fifth Edition.
Chapter 6: Structured Vs. Object Oriented Analysis and Design.
Object-Oriented Analysis and Design An Introduction.
1 ITEC 3010 “Systems Analysis and Design, I” LECTURE 10: Use Case Realizations [Prof. Peter Khaiter]
Computer Science II 810:062 Section 01. How is CS I different from CS II? When you teach Java there are a series of decisions that have to be made…
Chapter 7 Applying UML and Patterns Craig Larman
Systems Analysis and Design in a Changing World, 3rd Edition
Object-Oriented Analysis and Design Fall 2009.
L8 - March 28, 2006copyright Thomas Pole , all rights reserved 1 Lecture 8: Software Asset Management and Text Ch. 5: Software Factories, (Review)
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
Design Class Diagrams (DCDs)
1 COMP 350: Object Oriented Analysis and Design Lecture 1Introduction References: Craig Larman Chapter 1.
Chapter 16 Applying UML and Patterns Craig Larman
Domain Model Refinement Larman, chapter 31 CSE 432: Object-Oriented Software Engineering Glenn D. Blank, Lehigh University.
NJIT UML Class Diagrams Chapter 16 Applying UML and Patterns Craig Larman.
Sept Ron McFadyen1 Today Sept 16: Chapters 1, 2, 3 Introductory material Next Tuesday Sept 21: Rational Rose and Use Cases Chapter 6 - Use.
What to remember from Chap 13 (Logical architecture)
Object Oriented Design Jerry KotubaSYST Object Oriented Methodologies1.
1 On To Object Design Chapter 14 Applying UML and Patterns -Craig Larman.
Computing and SE II Chapter 9: Design Methods and Design Models Er-Yu Ding Software Institute, NJU.
Object-Oriented Analysis and Design ธนวัฒน์ แซ่ เอียบ.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Slide 1 Use Case Packets.
CODE - GENERATION IT1006 OOAD LAB. Generating/Updating code from whole project  Round-trip engineering is the ability to generate model from source code.
Object Oriented Analysis and Design Chapter 1 Applying UML and Patterns -Craig Larman.
Chapter 1 OBJECT-ORIENTED ANALYSIS AND DESIGN Objectives Describe the book goals and scope Define OOA/D (Object-Oriented Analysis and Design) Illustrate.
Software Engineering and Object-Oriented Design Topics: Solutions Modules Key Programming Issues Development Methods Object-Oriented Principles.
Object-Oriented Analysis and Design Week 11, 2009.
Object Oriented Analysis and Design 1 Chapter 9 From Design to Implementation  Implementation Model  Forward, Reverse, and Round-Trip Engineering  Mapping.
(Further analysis and Refactoring) Larman, chapters 23 and 24 Glenn D. Blank, CSE432.
BTS430 Systems Analysis and Design using UML Design Class Diagrams (ref=chapter 16 of Applying UML and Patterns)
Object Oriented Analysis & Design By Rashid Mahmood.
1 Chapter 13: Class Diagram Chapter 19 in Applying UML and Patterns Book.
Mapping Designs to Code. It specify how to map the design into object oriented language The UML artifacts created during the design work, the interaction.
Chapter 6: Structured Vs. Object Oriented Analysis and Design.
Chapter 5: Object Oriented Analysis and Design
Chapter 1 OBJECT-ORIENTED ANALYSIS AND DESIGN
CS 519: Object-Oriented Analysis & Design IS 516: Selected Topics in Information Technology Instructor: Dr. Tarek Elghazaly Text Book: Craig Larman,
The Object Oriented Approach to Design
GRASP (General Responsibility Assignment Software Patterns)
Object Oriented Analysis and Design
Chap 1 UML vs Thinking in Objects! Learning UML Visual modeling
Object Oriented Analysis and Design
Chapter 11: Class Diagram
Chapter 6: Structured Vs. Object Oriented Analysis and Design.
Review CSE116 2/21/2019 B.Ramamurthy.
Systems Development Jerry Post Copyright © 1997
Week 3 Iteration 1 Domain Models System Sequence Diagrams.
Week 3 Iteration 1 Domain Models System Sequence Diagrams.
Chapter 11: Class Diagram
Presentation transcript:

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 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

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

From DCD to Java class Fig. 20.1

From Interaction diagram to method Fig. 20.4

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

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

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