Docsity

Applying uml and patterns, Study notes of Integrated Case Studies

Toggle sidebar
bg1
•
Table of
Contents
•
Index
Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and
Iterative Development, Third Edition
By Craig Larman
Publisher
: Addison Wesley Professional
Pub Date
: October 20, 2004
ISBN
: 0-13-148906-2
Pages
: 736
Applying UML and Patterns is the world's #1 business and college
introduction to "thinking in objects"and using that insight in real-world
object-oriented analysis and design. Building on two widely acclaimed
previous editions, Craig Larman has updated this book to fully reflect the
new UML 2 standard, to help you master the art of object design, and to
promote high-impact, iterative, and skillful agile modeling practices.
Developers and students will learn object-oriented analysis and design
(OOA/D) through three iterations of two cohesive, start-to-finish case
studies. These case studies incrementally introduce key skills, essential OO
principles and patterns, UML notation, and best practices. You won't just
learn UML diagramsyou'll learn how to apply UML in the context of OO
software development.
Drawing on his unsurpassed experience as a mentor and consultant,
Larman helps you understand evolutionary requirements and use cases,
domain object modeling, responsibility-driven design, essential OO design,
layered architectures, "Gang of Four" design patterns, GRASP, iterative
methods, an agile approach to the Unified Process (UP), and much more.
This edition's extensive improvements include
A stronger focus on helping you master OOA/D through case studies
that demonstrate key OO principles and patterns, while also applying
the UML
New coverage of UML 2, Agile Modeling, Test-Driven Development,
and refactoring
Many new tips on combining iterative and evolutionary development
with OOA/D
Updates for easier study, including new learning aids and graphics
New college educator teaching resources
Guidance on applying the UP in a light, agile spirit, complementary
with other iterative methods such as XP and Scrum
Techniques for applying the UML to documenting architectures
A new chapter on evolutionary requirements, and much more
•
Table of
Contents
•
Index
Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and
Iterative Development, Third Edition
By Craig Larman
Publisher
: Addison Wesley Professional
Pub Date
: October 20, 2004
ISBN
: 0-13-148906-2
Pages
: 736
Applying UML and Patterns is the world's #1 business and college
introduction to "thinking in objects"and using that insight in real-world
object-oriented analysis and design. Building on two widely acclaimed
previous editions, Craig Larman has updated this book to fully reflect the
new UML 2 standard, to help you master the art of object design, and to
promote high-impact, iterative, and skillful agile modeling practices.
Developers and students will learn object-oriented analysis and design
(OOA/D) through three iterations of two cohesive, start-to-finish case
studies. These case studies incrementally introduce key skills, essential OO
principles and patterns, UML notation, and best practices. You won't just
learn UML diagramsyou'll learn how to apply UML in the context of OO
software development.
Drawing on his unsurpassed experience as a mentor and consultant,
Larman helps you understand evolutionary requirements and use cases,
domain object modeling, responsibility-driven design, essential OO design,
layered architectures, "Gang of Four" design patterns, GRASP, iterative
methods, an agile approach to the Unified Process (UP), and much more.
This edition's extensive improvements include
A stronger focus on helping you master OOA/D through case studies
that demonstrate key OO principles and patterns, while also applying
the UML
New coverage of UML 2, Agile Modeling, Test-Driven Development,
and refactoring
Many new tips on combining iterative and evolutionary development
with OOA/D
Updates for easier study, including new learning aids and graphics
New college educator teaching resources
Guidance on applying the UP in a light, agile spirit, complementary
with other iterative methods such as XP and Scrum
Techniques for applying the UML to documenting architectures
A new chapter on evolutionary requirements, and much more
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Applying uml and patterns and more Study notes Integrated Case Studies in PDF only on Docsity!

Table of Contents

  • Index

Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development, Third Edition By Craig Larman

Publisher : Addison Wesley Professional Pub Date : October 20, 2004 ISBN : 0-13-148906- Pages : 736

Applying UML and Patterns is the world's #1 business and college

introduction to "thinking in objects"and using that insight in real-world

object-oriented analysis and design. Building on two widely acclaimed

previous editions, Craig Larman has updated this book to fully reflect the

new UML 2 standard, to help you master the art of object design, and to

promote high-impact, iterative, and skillful agile modeling practices.

Developers and students will learn object-oriented analysis and design

(OOA/D) through three iterations of two cohesive, start-to-finish case

studies. These case studies incrementally introduce key skills, essential OO

principles and patterns, UML notation, and best practices. You won't just

learn UML diagramsyou'll learn how to apply UML in the context of OO

software development.

Drawing on his unsurpassed experience as a mentor and consultant,

Larman helps you understand evolutionary requirements and use cases,

domain object modeling, responsibility-driven design, essential OO design,

layered architectures, "Gang of Four" design patterns, GRASP, iterative

methods, an agile approach to the Unified Process (UP), and much more.

This edition's extensive improvements include

A stronger focus on helping you master OOA/D through case studies

that demonstrate key OO principles and patterns, while also applying

the UML

New coverage of UML 2, Agile Modeling, Test-Driven Development,

and refactoring

Many new tips on combining iterative and evolutionary development

with OOA/D

Updates for easier study, including new learning aids and graphics

New college educator teaching resources

Guidance on applying the UP in a light, agile spirit, complementary

with other iterative methods such as XP and Scrum

Techniques for applying the UML to documenting architectures

A new chapter on evolutionary requirements, and much more

Table of Contents

  • Index

Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development, Third Edition By Craig Larman

Publisher : Addison Wesley Professional Pub Date : October 20, 2004 ISBN : 0-13-148906- Pages : 736

Applying UML and Patterns is the world's #1 business and college

introduction to "thinking in objects"and using that insight in real-world

object-oriented analysis and design. Building on two widely acclaimed

previous editions, Craig Larman has updated this book to fully reflect the

new UML 2 standard, to help you master the art of object design, and to

promote high-impact, iterative, and skillful agile modeling practices.

Developers and students will learn object-oriented analysis and design

(OOA/D) through three iterations of two cohesive, start-to-finish case

studies. These case studies incrementally introduce key skills, essential OO

principles and patterns, UML notation, and best practices. You won't just

learn UML diagramsyou'll learn how to apply UML in the context of OO

software development.

Drawing on his unsurpassed experience as a mentor and consultant,

Larman helps you understand evolutionary requirements and use cases,

domain object modeling, responsibility-driven design, essential OO design,

layered architectures, "Gang of Four" design patterns, GRASP, iterative

methods, an agile approach to the Unified Process (UP), and much more.

This edition's extensive improvements include

A stronger focus on helping you master OOA/D through case studies

that demonstrate key OO principles and patterns, while also applying

the UML

New coverage of UML 2, Agile Modeling, Test-Driven Development,

and refactoring

Many new tips on combining iterative and evolutionary development

with OOA/D

Updates for easier study, including new learning aids and graphics

New college educator teaching resources

Guidance on applying the UP in a light, agile spirit, complementary

with other iterative methods such as XP and Scrum

Techniques for applying the UML to documenting architectures

A new chapter on evolutionary requirements, and much more

Applying UML and Patterns, Third Edition, is a lucid and practical

introduction to thinking and designing with objectsand creating systems

that are well crafted, robust, and maintainable.

Section 2.8. What is an Agile UP? Section 2.9. Are There Other Critical UP Practices? Section 2.10. What are the UP Phases? Section 2.11. What are the UP Disciplines? Section 2.12. How to Customize the Process? The UP Development Case Section 2.13. You Know You Didn't Understand Iterative Development or the UP When... Section 2.14. History Section 2.15. Recommended Resources Chapter 3. Case Studies Introduction Section 3.1. What is and isn't Covered in the Case Studies? Section 3.2. Case Study Strategy: Iterative Development + Iterative Learning Section 3.3. Case One: The NextGen POS System Section 3.4. Case Two: The Monopoly Game System Part 2. Inception

Chapter 4. Inception is Not the Requirements Phase Introduction Section 4.1. What is Inception? Section 4.2. How Long is Inception? Section 4.3. What Artifacts May Start in Inception? Section 4.4. You Know You Didn't Understand Inception When... Section 4.5. How Much UML During Inception? Chapter 5. Evolutionary Requirements Introduction Section 5.1. Definition: Requirements Section 5.2. Evolutionary vs. Waterfall Requirements Section 5.3. What are Skillful Means to Find Requirements? Section 5.4. What are the Types and Categories of Requirements? Section 5.5. How are Requirements Organized in UP Artifacts? Section 5.6. Does the Book Contain Examples of These Artifacts? Section 5.7. Recommended Resources Chapter 6. Use Cases Introduction Section 6.1. Example Section 6.2. Definition: What are Actors, Scenarios, and Use Cases? Section 6.3. Use Cases and the Use-Case Model Section 6.4. Motivation: Why Use Cases? Section 6.5. Definition: Are Use Cases Functional Requirements? Section 6.6. Definition: What are Three Kinds of Actors? Section 6.7. Notation: What are Three Common Use Case Formats? Section 6.8. Example: Process Sale, Fully Dressed Style Section 6.9. What do the Sections Mean? Section 6.10. Notation: Are There Other Formats? A Two-Column Variation Section 6.11. Guideline: Write in an Essential UI-Free Style Section 6.12. Guideline: Write Terse Use Cases Section 6.13. Guideline: Write Black-Box Use Cases Section 6.14. Guideline: Take an Actor and Actor-Goal Perspective Section 6.15. Guideline: How to Find Use Cases Section 6.16. Guideline: What Tests Can Help Find Useful Use Cases? Section 6.17. Applying UML: Use Case Diagrams

Section 6.18. Applying UML: Activity Diagrams Section 6.19. Motivation: Other Benefits of Use Cases? Requirements in Context Section 6.20. Example: Monopoly Game Section 6.21. Process: How to Work With Use Cases in Iterative Methods? Section 6.22. History Section 6.23. Recommended Resources Chapter 7. Other Requirements Introduction Other Requirement Artifacts Section 7.1. How Complete are these Examples? Section 7.2. Guideline: Should We Analyze These Thoroughly During Inception? Section 7.3. Guideline: Should These Artifacts be at the Project Website? Section 7.4. NextGen Example: (Partial) Supplementary Specification Section 7.5. Commentary: Supplementary Specification Section 7.6. NextGen Example: (Partial) Vision Section 7.7. Commentary: Vision Section 7.8. NextGen Example: A (Partial) Glossary Section 7.9. Commentary: Glossary (Data Dictionary) Section 7.10. NextGen Example: Business Rules (Domain Rules) Section 7.11. Commentary: Domain Rules Section 7.12. Process: Evolutionary Requirements in Iterative Methods Section 7.13. Recommended Resources Part 3. Elaboration Iteration 1 Basics

Chapter 8. Iteration 1Basics Introduction Section 8.1. Iteration 1 Requirements and Emphasis: Core OOA/D Skills Section 8.2. Process: Inception and Elaboration Section 8.3. Process: Planning the Next Iteration Chapter 9. Domain Models Introduction Section 9.1. Example Section 9.2. What is a Domain Model? Section 9.3. Motivation: Why Create a Domain Model? Section 9.4. Guideline: How to Create a Domain Model? Section 9.5. Guideline: How to Find Conceptual Classes? Section 9.6. Example: Find and Draw Conceptual Classes Section 9.7. Guideline: Agile ModelingSketching a Class Diagram Section 9.8. Guideline: Agile ModelingMaintain the Model in a Tool? Section 9.9. Guideline: Report ObjectsInclude 'Receipt' in the Model? Section 9.10. Guideline: Think Like a Mapmaker; Use Domain Terms Section 9.11. Guideline: How to Model the Unreal World? Section 9.12. Guideline: A Common Mistake with Attributes vs. Classes Section 9.13. Guideline: When to Model with 'Description' Classes? Section 9.14. Associations Section 9.15. Example: Associations in the Domain Models Section 9.16. Attributes Section 9.17. Example: Attributes in the Domain Models Section 9.18. Conclusion: Is the Domain Model Correct? Section 9.19. Process: Iterative and Evolutionary Domain Modeling Section 9.20. Recommended Resources

Section 14.2. UML CASE Tools Section 14.3. How Much Time Spent Drawing UML Before Coding? Section 14.4. Designing Objects: What are Static and Dynamic Modeling? Section 14.5. The Importance of Object Design Skill over UML Notation Skill Section 14.6. Other Object Design Techniques: CRC Cards

Chapter 15. UML Interaction Diagrams Introduction Section 15.1. Sequence and Communication Diagrams Section 15.2. Novice UML Modelers Don't Pay Enough Attention to Interaction Diagrams! Section 15.3. Common UML Interaction Diagram Notation Section 15.4. Basic Sequence Diagram Notation Section 15.5. Basic Communication Diagram Notation Chapter 16. UML Class Diagrams

Introduction Section 16.1. Applying UML: Common Class Diagram Notation Section 16.2. Definition: Design Class Diagram Section 16.3. Definition: Classifier Section 16.4. Ways to Show UML Attributes: Attribute Text and Association Lines Section 16.5. Note Symbols: Notes, Comments, Constraints, and Method Bodies Section 16.6. Operations and Methods Section 16.7. Keywords Section 16.8. Stereotypes, Profiles, and Tags Section 16.9. UML Properties and Property Strings Section 16.10. Generalization, Abstract Classes, Abstract Operations Section 16.11. Dependency Section 16.12. Interfaces Section 16.13. Composition Over Aggregation Section 16.14. Constraints Section 16.15. Qualified Association Section 16.16. Association Class Section 16.17. Singleton Classes Section 16.18. Template Classes and Interfaces Section 16.19. User-Defined Compartments Section 16.20. Active Class Section 16.21. What's the Relationship Between Interaction and Class Diagrams?

Chapter 17. GRASP: Designing Objects with Responsibilities Section 17.1. UML versus Design Principles Section 17.2. Object Design: Example Inputs, Activities, and Outputs Section 17.3. Responsibilities and Responsibility-Driven Design Section 17.4. GRASP: A Methodical Approach to Basic OO Design Section 17.5. What's the Connection Between Responsibilities, GRASP, and UML Diagrams? Section 17.6. What are Patterns? Section 17.7. Where are We Now? Section 17.8. A Short Example of Object Design with GRASP Section 17.9. Applying GRASP to Object Design Section 17.10. Creator Section 17.11. Information Expert (or Expert) Section 17.12. Low Coupling Section 17.13. Controller Section 17.14. High Cohesion

Section 17.15. Recommended Resources Chapter 18. Object Design Examples with GRASP Introduction Section 18.1. What is a Use Case Realization? Section 18.2. Artifact Comments Section 18.3. What's Next? Section 18.4. Use Case Realizations for the NextGen Iteration Section 18.5. Use Case Realizations for the Monopoly Iteration Section 18.6. Process: Iterative and Evolutionary Object Design Section 18.7. Summary Chapter 19. Designing for Visibility Introduction Section 19.1. Visibility Between Objects Section 19.2. What is Visibility? Chapter 20. Mapping Designs to Code Introduction Section 20.1. Programming and Iterative, Evolutionary Development Section 20.2. Mapping Designs to Code Section 20.3. Creating Class Definitions from DCDs Section 20.4. Creating Methods from Interaction Diagrams Section 20.5. Collection Classes in Code Section 20.6. Exceptions and Error Handling Section 20.7. Defining the Sale.makeLineItem Method Section 20.8. Order of Implementation Section 20.9. Test-Driven or Test-First Development Section 20.10. Summary of Mapping Designs to Code Section 20.11. Introduction to the NextGen POS Program Solution Section 20.12. Introduction to the Monopoly Program Solution Chapter 21. Test-Driven Development and Refactoring Introduction Section 21.1. Test-Driven Development Section 21.2. Refactoring Section 21.3. Recommended Resources

Part 4. Elaboration Iteration 2 More Patterns Chapter 22. UML Tools and UML as Blueprint Introduction Section 22.1. Forward, Reverse, and Round-Trip Engineering Section 22.2. What is a Common Report of Valuable Features? Section 22.3. What to Look For in a Tool? Section 22.4. If Sketching UML, How to Update the Diagrams After Coding? Section 22.5. Recommended Resources Chapter 23. Quick Analysis Update Introduction Section 23.1. Case Study: NextGen POS Section 23.2. Case Study: Monopoly Chapter 24. Iteration 2More Patterns Introduction Section 24.1. From Iteration 1 to 2 Section 24.2. Iteration-2 Requirements and Emphasis: Object Design and Patterns Chapter 25. GRASP: More Objects with Responsibilities

Chapter 31. More SSDs and Contracts

Introduction Section 31.1. NextGen POS

Chapter 32. Domain Model Refinement Introduction Section 32.1. New Concepts for the NextGen Domain Model Section 32.2. Generalization Section 32.3. Defining Conceptual Superclasses and Subclasses Section 32.4. When to Define a Conceptual Subclass? Section 32.5. When to Define a Conceptual Superclass? Section 32.6. NextGen POS Conceptual Class Hierarchies Section 32.7. Abstract Conceptual Classes Section 32.8. Modeling Changing States Section 32.9. Class Hierarchies and Inheritance in Software Section 32.10. Association Classes Section 32.11. Aggregation and Composition Section 32.12. Time Intervals and Product PricesFixing an Iteration 1 "Error" Section 32.13. Association Role Names Section 32.14. Roles as Concepts versus Roles in Associations Section 32.15. Derived Elements Section 32.16. Qualified Associations Section 32.17. Reflexive Associations Section 32.18. Using Packages to Organize the Domain Model Section 32.19. Example: Monopoly Domain Model Refinements Chapter 33. Architectural Analysis

Introduction Section 33.1. Process: When Do We Start Architectural Analysis? Section 33.2. Definition: Variation and Evolution Points Section 33.3. Architectural Analysis Section 33.4. Common Steps in Architectural Analysis Section 33.5. The Science: Identification and Analysis of Architectural Factors Section 33.6. Example: Partial NextGen POS Architectural Factor Table Section 33.7. The Art: Resolution of Architectural Factors Section 33.8. Summary of Themes in Architectural Analysis Section 33.9. Process: Iterative Architecture in the UP Section 33.10. Recommended Resources Chapter 34. Logical Architecture Refinement

Introduction Section 34.1. Example: NextGen Logical Architecture Section 34.2. Collaborations with the Layers Pattern Section 34.3. Other Layer Pattern Issues Section 34.4. Model-View Separation and "Upward" Communication Section 34.5. Recommended Resources

Chapter 35. More Object Design with GoF Patterns Introduction Section 35.1. Example: NextGen POS Section 35.2. Failover to Local Services; Performance with Local Caching Section 35.3. Handling Failure Section 35.4. Failover to Local Services with a Proxy (GoF) Section 35.5. Designing for Non-Functional or Quality Requirements

Section 35.6. Accessing External Physical Devices with Adapters Section 35.7. Abstract Factory (GoF) for Families of Related Objects Section 35.8. Handling Payments with Polymorphism and Do It Myself Section 35.9. Example: Monopoly Section 35.10. Conclusion Chapter 36. Package Design Introduction Section 36.1. Package Organization Guidelines Section 36.2. Recommended Resources Chapter 37. UML Deployment and Component Diagrams Section 37.1. Deployment Diagrams Section 37.2. Component Diagrams Chapter 38. Designing a Persistence Framework with Patterns Introduction Section 38.1. The Problem: Persistent Objects Section 38.2. The Solution: A Persistence Service from a Persistence Framework Section 38.3. Frameworks Section 38.4. Requirements for the Persistence Service and Framework Section 38.5. Key Ideas Section 38.6. Pattern: Representing Objects as Tables Section 38.7. UML Data Modeling Profile Section 38.8. Pattern: Object Identifier Section 38.9. Accessing a Persistence Service with a Facade Section 38.10. Mapping Objects: Database Mapper or Database Broker Pattern Section 38.11. Framework Design with the Template Method Pattern Section 38.12. Materialization with the Template Method Pattern Section 38.13. Configuring Mappers with a MapperFactory Section 38.14. Pattern: Cache Management Section 38.15. Consolidating and Hiding SQL Statements in One Class Section 38.16. Transactional States and the State Pattern Section 38.17. Designing a Transaction with the Command Pattern Section 38.18. Lazy Materialization with a Virtual Proxy Section 38.19. How to Represent Relationships in Tables Section 38.20. PersistentObject Superclass and Separation of Concerns Section 38.21. Unresolved Issues Chapter 39. Documenting Architecture: UML & the N+1 View Model Introduction Section 39.1. The SAD and Its Architectural Views Section 39.2. Notation: The Structure of a SAD Section 39.3. Example: A NextGen POS SAD Section 39.4. Example: A Jakarta Struts SAD Section 39.5. Process: Iterative Architectural Documentation Section 39.6. Recommended Resources

Part 6. Special Topics Chapter 40. More on Iterative Development and Agile Project Management Introduction Section 40.1. How to Plan an Iteration? Section 40.2. Adaptive versus Predictive Planning Section 40.3. Phase and Iteration Plans Section 40.4. How to Plan Iterations with Use Cases and Scenarios?

Copyright

The author and publisher have taken care in the preparation of this book, but make no expressed

or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is

assumed for incidental or consequential damages in connection with or arising out of the use of

the information or programs contained herein.

Publisher: John Wait

Editor in Chief: Don O'Hagan

Acquisitions Editor: Paul Petralia

Marketing Manager: Chris Guzikowski

Managing Editor: John Fuller

Project Editor: Julie Nahil

Manufacturing Buyer: Carol Melville

The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases

or special sales, which may include electronic versions and/or custom covers and content

particular to your business, training goals, marketing focus, and branding interests. For more

information, please contact:

U. S. Corporate and Government Sales

[email protected]

For sales outside the U. S., please contact:

International Sales

[email protected]

Visit us on the Web: www.phptr.com

Library of Congress Cataloging-in-Publication Data:

Larman, Craig.

Applying UML and patterns: an introduction to object-oriented analysis and design and

iterative development / Craig Larman. 3rd ed.

p. cm.

Includes bibliographical references and index.

ISBN 0-13-148906-2 (alk. paper)

1. Object-oriented methods (Computer science) 2. UML (Computer science) 3. System

analysis. 4. System design. I. Title.

QA76.9.O35 L37 2004

005.1'17--dc22 2004057647

Copyright © 2005 Pearson Education, Inc.

All rights reserved. Printed in the United States of America. This publication is protected by

copyright, and permission must be obtained from the publisher prior to any prohibited

reproduction, storage in a retrieval system, or transmission in any form or by any means,

electronic, mechanical, photocopying, recording, or likewise. For information regarding

permissions, write to:

Pearson Education, Inc.

Rights and Contracts Department

One Lake Street

Upper Saddle River, NJ 07458

All products or services mentioned in this book are the trademarks or service marks of their

respective companies or organizations.

Quote acknowledgments:

Paul Erdos: From "The Man Who Only Loved Numbers" by Paul Hoffman.

H.G. Wells: Used by permission of A.P. Watt Ltd. On behalf of the Executors of the Estate of H.G. Wells.

Text printed in the United States on recycled paper at Courier in Westford, Massachusetts

First printing, October 2004

Dedication

For Julie, Haley, and Hannah

Thanks for the love and support.

Contents by Major Topics

This book introduces a topic incrementally, spread out over chapters as the case studies unfold.

That's useful, but it introduces a problem: How can you find most material on a major subject

(e.g., OO Design)? The Index is one solution, but fine-grained; this listing provides another.

Agile Practices

What is Agile Modeling? 30

What is an Agile UP? 31

Agile Modeling and Lightweight UML Drawing 214

More on Iterative Development and Agile Project Management 673

Architecture

Logical Architecture and UML Package Diagrams 197

Architectural Analysis 541

Logical Architecture Refinement 559

Package Design 613

Documenting Architecture: UML & the N+1 View Model 655

Domain Modeling

Domain Models 131

What's the Relationship Between the Domain Layer and Domain Model? 206

Domain Model Refinement 507

GRASP

GRASP: Designing Objects with Responsibilities 271

GRASP: More Objects with Responsibilities 413

Handling Payments with Polymorphism and Do It Myself 600

Example: Monopoly 607

GoF Design Patterns

What are Patterns? 278

Applying GoF Design Patterns 435

More Object Design with GoF Patterns 579

Designing a Persistence Framework with Patterns 625

Iterative Development

Iterative, Evolutionary, and Agile 17

Evolutionary Requirements 53

Iteration 1Basics 123

Requirements to DesignIteratively 195

More on Iterative Development and Agile Project Management 673

OO Analysis

See Domain Modeling and Operation Contracts

OO Design

See GRASP and GoF Design Patterns

On to Object Design 213

Package Design 613

Operation Contracts

Operation Contracts 181

Operation Contracts and Use Case Realizations 326

More SSDs and Contracts 501

Patterns

See GRASP and GoF Design Patterns

What are Patterns? 278

Programming

Mapping Designs to Code 369

Test-Driven Development and Refactoring 385

Project Management

See Agile Practices and Iterative Development

More on Iterative Development and Agile Project Management 673

Requirements

See Use Cases

Evolutionary Requirements 53

Other Requirements 101

  • Requirements to DesignIteratively
  • UML Activity Diagrams and Modeling
  • UML State Machine Diagrams and Modeling
  • System Sequence Diagrams
  • SSDs, System Operations, Interaction Diagrams, and Use Case Realizations
  • More SSDs and Contracts
  • Test-Driven Development and Refactoring Testing
  • What is the UML? UML
  • Applying UML: Use Case Diagrams
  • Domain Models
  • Applying UML: Sequence Diagrams
  • Applying UML: Package Diagrams
  • UML Interaction Diagrams
  • UML Class Diagrams
  • UML Activity Diagrams and Modeling
  • UML State Machine Diagrams and Modeling
  • Use Case Diagrams
  • UML Deployment and Component Diagrams
  • What is an Agile UP? Unified Process
  • Are There Other Critical UP Practices?
  • More on Iterative Development and Agile Project Management
  • Use Cases Use Cases
  • What is the Relationship Between SSDs and Use Cases?
  • What is a Use Case Realization?
  • Relating Use Cases
  • How to Plan Iterations with Use Cases and Scenarios?

Foreword

Programming is fun, but developing quality software is hard. In between the nice ideas, the

requirements or the "vision," and a working software product, there is much more than

programming. Analysis and design, defining how to solve the problem, what to program,

capturing this design in ways that are easy to communicate, to review, to implement, and to

evolve is what lies at the core of this book. This is what you will learn.

The Unified Modeling Language (UML) has become the universally-accepted language for software

design blueprints. UML is the visual language used to convey design ideas throughout this book,

which emphasizes how developers really apply frequently used UML elements, rather than

obscure features of the language.

The importance of patterns in crafting complex systems has long been recognized in other

disciplines. Software design patterns are what allow us to describe design fragments, and reuse

design ideas, helping developers leverage the expertise of others. Patterns give a name and form

to abstract heuristics, rules and best practices of object-oriented techniques. No reasonable

engineer wants to start from a blank slate, and this book offers a palette of readily usable design

patterns.

But software design looks a bit dry and mysterious when not presented in the context of a

software engineering process. And on this topic, I am delighted that for his new edition, Craig

Larman has chosen to embrace and introduce the Unified Process, showing how it can be applied

in a relatively simple and low-ceremony way. By presenting the case study in an iterative, risk-

driven, architecture-centric process, Craig's advice has realistic context; he exposes the dynamics

of what really happens in software development, and shows the external forces at play. The

design activities are connected to other tasks, and they no longer appear as a purely cerebral

activity of systematic transformations or creative intuition. And Craig and I are convinced of the

benefits of iterative development, which you will see abundantly illustrated throughout.

So for me, this book has the right mix of ingredients. You will learn a systematic method to do

Object-Oriented Analysis and Design (OOA/D) from a great teacher, a brilliant methodologist, and

an "OO guru" who has taught it to thousands around the world. Craig describes the method in the

context of the Unified Process. He gradually presents more sophisticated design patternsthis will

make the book very handy when you are faced with real-world design challenges. And he uses

the most widely accepted notation.

I'm honored to have had the opportunity to work directly with the author of this major book. I

enjoyed reading the first edition, and was delighted when he asked me to review the draft of his

new edition. We met several times and exchanged many e-mails. I have learned much from

Craig, even about our own process work on the Unified Process and how to improve it and

position it in various organizational contexts. I am certain that you will learn a lot, too, in reading

this book, even if you are already familiar with OOA/D. And, like me, you will find yourself going

back to it, to refresh your memory, or to gain further insights from Craig's explanations and

experience.

Happy reading!

Philippe Kruchten

Professor of Software Engineering, University of British Columbia