没有合适的资源?快使用搜索试试~ 我知道了~
首页UML面向对象建模与设计(Object-Oriented Modeling and Design with UML)习题解
UML面向对象建模与设计(Object-Oriented Modeling and Design with UML)习题解

这个东东很难才找到的,是《UML面向对象建模设计》(Michael Blaha、James Rumbaugh著)的习题解!英文版。
资源详情
资源评论
资源推荐

Answer Key to
Object-Oriented
Modeling and Design
with UML, Second Edition
Michael Blaha
Modelsoft Consulting Corporation
James Rumbaugh
IBM
Pearson Prentice Hall
Upper Saddle River, New Jersey 07458
阎 鹏 飞

iii
2005 by Pearson Education, Inc.
Upper Saddle River, New Jersey 07458
The author and publisher of this book have used their best efforts in preparing this book. These efforts
include the development, research, and testing of the theories and programs to determine their
effectiveness. The author and publisher make no warranty of any kind, expressed or implied, with regard
to these programs or the documentation contained in this book. The author and publisher shall not be
liable in any event for incidental or consequential damages in connection with, or arising out of, the
furnishing, performance, or use of these programs.
All rights reserved. No part of this book may be reproduced, in any
form or by any means, without permission in writing from the publisher.
Printed in the United States of America.
阎 鹏 飞

v
Contents
Chapter 1 Introduction 1
Part 1: Modeling Concepts
Chapter 2 Modeling as a Design Technique 7
Chapter 3 Class Modeling 10
Chapter 4 Advanced Class Modeling 34
Chapter 5 State Modeling 46
Chapter 6 Advanced State Modeling 52
Chapter 7 Interaction Modeling 61
Chapter 8 Advanced Interaction Modeling 74
Chapter 9 Concepts Summary 83
Part 2: Analysis and Design
Chapter 10 Process Overview 85
Chapter 11 System Conception 86
Chapter 12 Domain Analysis 91
Chapter 13 Application Analysis 110
Chapter 14 System Design 126
Chapter 15 Class Design 135
Chapter 16 Process Summary 149
阎 鹏 飞

vi
Part 3: Implementation
Chapter 17 Implementation Modeling 151
Chapter 18 OO Languages 155
Chapter 19 Databases 194
Chapter 20 Programming Style 219
阎 鹏 飞

1
1
Introduction
[There are no right or wrong answers to the first four exercises, which are intended to
give you some feedback on the background of the students and to get them thinking
about the value of using a software design methodology.]
1.1
The amount of time spent on analysis, design, coding, and testing/debugging/fixing de-
pends on the methodology used. Using an OO approach, we find that our effort is split
approximately 20% on analysis, 30% on design, 40% on coding, and 10% on testing/
debugging/fixing problems. The exact split depends on factors such as the type of sys-
tem and the amount of experience with similar systems. We have found that paying extra
attention to analysis and design cuts the total development time. It is a lot easier to avoid
a problem during analysis and design than it is to find and fix it later on.
One of the most difficult areas of project management is estimating how much effort
a project will require. One method that we use is to break the total effort down into sev-
eral tasks. We think about each task separately and estimate how much effort is required,
based on our experience with similar tasks.
One major problem that we have encountered is underestimating the time and effort
required to complete a project. Most software projects are finished late and over budget.
We try to deal with this by carefully considering our estimates and explicitly allowing
for contingencies.
Premature implementation is another problem. Because of an anxiety to complete a
project, developers sometimes substitute implementation for design, resulting in sys-
tems that are hard to debug. The resulting software suffers from unwarranted assump-
tions and fuzzy thinking. With such an approach, developers bog down in details and
find it difficult to see flaws.
In one of our projects we quickly prototyped a trivial master-slave communications
system. We did the initial coding in a week without benefit of a thoughtful design. The
resulting system crashed due to occasional data communications errors. We applied
many patches to the system over a period of three months. Each time we thought we un-
阎 鹏 飞
剩余224页未读,继续阅读















安全验证
文档复制为VIP权益,开通VIP直接复制

评论6