Software engineering : a practitioner's approach /
Roger S. Pressman.
- 6th ed.
- Boston, Mass. : McGraw-Hill, 2005
- 912 p.
includes index
Table of contents>> Part one-the product and the process 1 Chapter 1 the product 3 1.1 the evolving role of software 4 1.2 software 6 1.2.1 software characteristics 6 1.2.2 software applications 9 1.3 software: a crisis on the horizon? 11 1.4 software myths 12 1.5 summary 15 References 15 Problems and points to ponder 16 Further readings and information sources 17 Chapter 2 the process 19 2.1 software engineering: a layered technology 20 2.1.1 process, methods, and tools 20 2.1.2 a generic view of software engineering 21 2.2 the software process 23 2.3 software process models 26 2.4 the linear sequential model 28 2.5 the prototyping model 30 2.6 the rad model 32 2.7 evolutionary software process models 34 2.7.1 the incremental model 35 2.7.2 the spiral model 36 2.7.3 the winwin spiral model 38 2.7.4 the concurrent development model 40 2.8 component-based development 42 2.9 the formal methods model 43 2.10 fourth generation techniques 44 2.11 process technology 46 2.12 product and process 46 2.13 summary 47 References 47 Problems and points to ponder 49 Further readings and information sources 50 Part two-managing software projects 53 Chapter 3 project management concepts 55 3.1 the management spectrum 56 3.1.1 the people 56 3.1.2 the product 57 3.1.2 the process 57 3.1.3 the project 57 3.2 people 58 3.2.1 the players 58 3.2.2 team leaders 59 3.2.3 the software team 60 3.2.4 coordination and communication issues 65 3.3 the product 67 3.3.1 software scope 67 3.3.2 problem decomposition 67 3.4 the process 68 3.4.1 melding the product and the process 69 3.4.2 process decomposition 70 3.5 the project 71 3.6 the w5hh principle 73 3.7 critical practices 74 3.8 summary 74 References 75 Problems and points to ponder 76 Further readings and information sources 77 Chapter 4 software process and project metrics 79 4.1 measures, metrics, and indicators 80 4.2 metrics in the process and project domains 81 4.2.1 process metrics and software process Improvement 82 4.2.2 project metrics 86 4.3 software measurement 87 4.3.1 size-oriented metrics 88 4.3.2 function-oriented metrics 89 4.3.3 extended function point metrics 91 4.4 reconciling different metrics approaches 94 4.5 metrics for software quality 95 4.5.1 an overview of factors that affect quality 95 4.5.2 measuring quality 96 4.5.3 defect removal efficiency 98 4.6 integrating metrics within the software engineering process 98 4.6.1 arguments for software metrics 99 4.6.2 establishing a baseline 100 4.6.3 metrics collection, computation, and Evaluation 100 4.7 managing variation: statistical quality control 100 4.8 metrics for small organizations 104 4.9 establishing a software metrics program 105 4.10 summary 107 References 107 Problems and points to ponder 109 Further readings and information sources 110 Chapter 5 software project planning 113 5.1 observations on estimating 114 5.2 project planning objectives 115 5.3 software scope 115 5.3.1 obtaining information necessary for scope 116 5.3.2 feasibility 117 5.3.3 a scoping example 118 5.4 resources 120 5.4.1 human resources 121 5.4.2 reusable software resources 121 5.4.3 environmental resources 122 5.5 software project estimation 123 5.6 decomposition techniques 124 5.6.1 software sizing 124 5.6.2 problem-based estimation 126 5.6.3 an example of loc-based estimation 128 5.6.4 an example of fp-based estimation 129 5.6.4 process-based estimation 130 5.6.5 an example of process-based estimation 131 5.7 empirical estimation models 132 5.7.1 the structure of estimation models 132 5.7.2 the cocomo model 133 5.7.3 the software equation 135 5.8 the make/buy decision 136 5.8.1 creating a decision tree 137 5.8.2 outsourcing 138 5.9 automated estimation tools 139 5.10 summary 140 References 140 Problems and points to ponder 141 Further readings and information sources 142 Chapter 6 risk analysis and management 145 6.1 reactive versus proactive risk strategies 146 6.2 software risks 146 6.3 risk identification 148 6.3.1 assessing overall project risk 149 6.3.2 risk components and drivers 149 6.4 risk projection 151 6.4.1 developing a risk table 151 6.4.2 assessing risk impact 153 6.4.3 risk assessment 154 6.5 risk refinement 156 6.6 risk mitigation, monitoring, and management 156 6.7 safety risks and hazards 158 6.8 the rmmm plan 159 6.9 summary 159 References 160 Problems and points to ponder 161 Further readings and information sources 162 Chapter 7 project scheduling and tracking 165 7.1 basic concepts 166 7.1.1 comments on "lateness" 167 7.2.1 basic principles 168 7.2 the relationship between people and effort 170 7.2.1 an example 170 7.2.2 an empirical relationship 171 7.2.3 effort distribution 172 7.3 defining a task set for the software project 172 7.3.1 degree of rigor 173 7.3.2 defining adaptation criteria 174 7.3.3 computing a task set selector value 175 7.3.4 interpreting the tss value and selecting the task Set 176 7.4 selecting software engineering tasks 177 7.5 refinement of major tasks 178 7.6 defining a task network 180 7.7 scheduling 181 7.7.1 timeline charts 182 7.7.2 tracking the schedule 185 7.8 earned value analysis 186 7.9 error tracking 187 7.10 the project plan 189 7.11 summary 189 References 189 Problems and points to ponder 190 Further readings and information sources 192 Chapter 8 software quality assurance 193 8.1 quality concepts 194 8.1.1 quality 195 8.1.2 quality control 196 8.1.3 quality assurance 196 8.1.4 cost of quality 196 8.2 the quality movement 198 8.3 software quality assurance 199 8.3.1 background issues 200 8.3.2 sqa activities 201 8.4 software reviews 202 8.4.1 cost impact of software defects 203 8.4.2 defect amplification and removal 204 8.5 formal technical reviews 205 8.5.1 the review meeting 206 8.5.2 review reporting and record keeping 207 8.5.3 review guidelines 207 8.6 formal approaches to sqa 209 8.7 statistical software quality assurance 209 8.8 software reliability 212 8.8.1 measures of reliability and availability 212 8.8.2 software safety 213 8.9 mistake-proofing for software 214 8.10 the iso 9000 quality standards 216 8.10.1 the iso approach to quality assurance systems 217 8.10.2 the iso 9001 standard 217 8.11 the sqa plan 218 8.12 summary 219 References 220 Problems and points to ponder 221 Further readings and information sources 222 Chapter 9 software configuration management 225 9.1 software configuration management 226 9.1.1 baselines 227 9.1.2 software configuration items 228 9.2 the scm process 230 9.3 identification of objects in the software configuration 230 9.4 version control 232 9.5 change control 234 9.6 configuration audit 237 9.7 status reporting 237 9.8 scm standards 238 9.9 summary 238 References 239 Problems and points to ponder 239 Further readings and information sources 240 Part three-conventional methods for software engineering 243 Chapter 10 system engineering 245 10.1 computer-based systems 246 10.2 the system engineering hierarchy 248 10.2.1 system modeling 249 10.2.2 system simulation 251 10.3 business process engineering: an overview 251 10.4 product engineering: an overview 254 10.5 requirements engineering 256 10.5.1 requirements elicitation 256 10.5.2 requirements analysis and negotiation 258 10.5.3 requirements specification 259 10.5.4 system modeling 259 10.5.5 requirements validation 260 10.5.6 requirements management 261 10.6 system modeling 262 10.7 summary 265 References 267 Problems and points to ponder 267 Further readings and information sources 269 Chapter 11 analysis concepts and principles 271 11.1 requirements analysis 272 11.2 requirements elicitation for software 274 11.2.1 initiating the process 274 11.2.2 facilitated application specification techniques 275 11.2.3 quality function deployment 279 11.2.4 use-cases 280 11.3 analysis principles 282 11.3.1 the information domain 283 11.3.2 modeling 285 11.3.3 partitioning 286 11.3.4 essential and implementation views 288 11.4 software prototyping 289 11.4.1 selecting the prototyping approach 289 11.4.2 prototyping methods and tools 290 11.5 specification 291 11.5.1 specification principles 291 11.5.2 representation 292 11.5.3 the software requirements specification 293 11.6 specification review 294 11.7 summary 294 References 295 Problems and points to ponder 296 Further readings and information sources 297 Chapter 12 analysis modeling 299 12.1 a brief history 300 12.2 the elements of the analysis model 301 12.3 data modeling 302 12.3.1 data objects, attributes, and relationships 302 12.3.2 cardinality and modality 305 12.3.3 entity/relationship diagrams 307 12.4 functional modeling and information flow 309 12.4.1 data flow diagrams 311 12.4.2 extensions for real-time systems 312 12.4.3 ward and mellor extensions 312 12.4.4 hatley and pirbhai extensions 315 12.5 behavioral modeling 317 12.6 the mechanics of structured analysis 319 12.6.1 creating an entity/relationship diagram 319 12.6.2 creating a data flow model 321 12.6.3 creating a control flow model 324 12.6.4 the control specification 325 12.6.5 the process specification 327 12.7 the data dictionary 328 12.8 other classical analysis methods 330 12.9 summary 331 References 331 Problems and points to ponder 332 Further readings and information sources 334 Chapter 13 design concepts and principles 335 13.1 software design and software engineering 336 13.2 the design process 338 13.2.1 design and software quality 338 13.2.2 the evolution of software design 339 13.3 design principles 340 13.4 design concepts 341 13.4.1 abstraction 342 13.4.2 refinement 343 13.4.3 modularity 343 13.4.4 software architecture 346 13.4.5 control hierarchy 347 13.4.6 structural partitioning 348 13.4.7 data structure 349 13.4.8 software procedure 351 13.4.9 information hiding 351 13.5 effective modular design 352 13.5.1 functional independence 352 13.5.2 cohesion 353 13.5.3 coupling 354 13.6 design heuristics for effective modularity 355 13.7 the design model 357 13.8 design documentation 358 13.9 summary 359 References 359 Problems and points to ponder 361 Further readings and information sources 362 Chapter 14 architectural design 365 14.1 software architecture 366 14.1.1 what is architecture? 366 14.1.2 why is architecture important? 367 14.2 data design 368 14.2.1 data modeling, data structures, databases, and the data warehouse 368 14.2.2 data design at the component level 369 14.3 architectural styles 371 14.3.1 a brief taxonomy of styles and patterns 371 14.3.2 organization and refinement 374 14.4 analyzing alternative architectural designs 375 14.4.1 an architecture trade-off analysis method 375 14.4.2 quantitative guidance for architectural design 376 14.4.3 architectural complexity 378 14.5 mapping requirements into a software architecture 378 14.5.1 transform flow 379 14.5.2 transaction flow 380 14.6 transform mapping 380 14.6.1 an example 380 14.6.2 design steps 381 14.7 transaction mapping 389 14.7.1 an example 390 14.7.2 design steps 390 14.8 refining the architectural design 394 14.9 summary 395 References 396 Problems and points to ponder 397 Further readings and information sources 399 Chapter 15 user interface design 401 15.1 the golden rules 402 15.1.1 place the user in control 402 15.1.2 reduce the user's memory load 404 15.1.3 make the interface consistent 404 15.2 user interface design 405 15.2.1 interface design models 405 15.2.2 the user interface design process 407 15.3 task analysis and modeling 408 15.4 interface design activities 410 15.4.1 defining interface objects and actions 410 15.4.2 design issues 413 15.5 implementation tools 415 15.6 design evaluation 416 15.7 summary 418 References 418 Problems and points to ponder 419 Further readings and information sources 420 Chapter 16 component-level design 423 16.1 structured programming 424 16.1.1 graphical design notation 425 16.1.2 tabular design notation 427 16.1.3 program design language 429 16.1.4 a pdl example 430 16.2 comparison of design notation 432 16.3 summary 433 References 433 Problems and points to ponder 434 Further readings and information sources 435 Chapter 17 software testing techniques 437 17.1 software testing fundamentals 438 17.1.1 testing objectives 439 17.1.2 testing principles 439 17.1.3 testability 440 17.2 test case design 443 17.3 white-box testing 444 17.4 basis path testing 445 17.4.1 flow graph notation 445 17.4.2 cyclomatic complexity 446 17.4.3 deriving test cases 449 17.4.4 graph matrices 452 17.5 control structure testing 454 17.5.1 condition testing 454 17.5.2 data flow testing 456 17.5.3 loop testing 458 17.6 black-box testing 459 17.6.1 graph-based testing methods 460 17.6.2 equivalence partitioning 463 17.6.3 boundary value analysis 465 17.6.4 comparison testing 465 17.6.5 orthogonal array testing 466 17.7 testing for specialized environments, architectures, and Applications 468 17.7.1 testing guis 469 17.7.2 testing of client/server architectures 469 17.7.3 testing documentation and help facilities 469 17.7.4 testing for real-time systems 470 17.8 summary 472 References 473 Problems and points to ponder 474 Further readings and information sources 475 Chapter 18 software testing strategies 477 18.1 a strategic approach to software testing 478 18.1.1 verification and validation 479 18.1.2 organizing for software testing 479 18.1.3 a software testing strategy 480 18.1.4 criteria for completion of testing 482 18.2 strategic issues 484 18.3 unit testing 485 18.3.1 unit test considerations 485 18.3.2 unit test procedures 487 18.4 integration testing 488 18.4.1 top-down integration 488 18.4.2 bottom-up integration 490 18.4.3 regression testing 491 18.4.4 smoke testing 492 18.4.5 comments on integration testing 493 18.4.6 integration test documentation 494 18.5 validation testing 495 18.5.1 validation test criteria 495 18.5.2 configuration review 496 18.5.3 alpha and beta testing 496 18.6 system testing 496 18.6.1 recovery testing 497 18.6.2 security testing 497 18.6.3 stress testing 498 18.6.4 performance testing 498 18.7 the art of debugging 499 18.7.1 the debugging process 499 18.7.2 psychological considerations 500 18.7.3 debugging approaches 501 18.8 summary 502 References 503 Problems and points to ponder 504 Further readings and information sources 505 Chapter 19 technical metrics for software 507 19.1 software quality 508 19.1.1 mccall's quality factors 509 19.1.2 furps 511 19.1.3 iso 9126 quality factors 513 19.1.4 the transition to a quantitative view 513 19.2 a framework for technical software metrics 514 19.2.1 the challenge of technical metrics 514 19.2.2 measurement principles 515 19.2.3 the attributes of effective software metrics 516 19.3 metrics for the analysis model 517 19.3.1 function-based metrics 518 19.3.2 the bang metric 520 19.3.3 metrics for specification quality 522 19.4 metrics for the design model 523 19.4.1 architectural design metrics 523 19.4.2 component-level design metrics 526 19.4.3 interface design metrics 530 19.5 metrics for source code 531 19.6 metrics for testing 532 19.7 metrics for maintenance 533 19.8 summary 534 References 534 Problems and points to ponder 536 Further reading and other information sources 537 Part four-object-oriented software engineering 539 Chapter 20 object-oriented concepts and Principles 541 20.1 the object-oriented paradigm 542 20.2 object-oriented concepts 544 20.2.1 classes and objects 546 20.2.2 attributes 547 20.2.3 operations, methods, and services 548 20.2.4 messages 548 20.2.5 encapsulation, inheritance, and polymorphism 550 20.3 identifying the elements of an object model 553 20.3.1 identifying classes and objects 553 20.3.2 specifying attributes 557 20.3.3 defining operations 558 20.3.4 finalizing the object definition 559 20.4 management of object-oriented software projects 560 20.4.1 the common process framework for oo 560 20.4.2 oo project metrics and estimation 562 20.4.3 an oo estimating and scheduling approach 564 20.4.4 tracking progress for an oo project 565 20.5 summary 566 References 566 Problems and points to ponder 567 Further readings and information sources 568 Chapter 21 object-oriented analysis 571 21.1 object-oriented analysis 572 21.1.1 conventional vs. Oo approaches 572 21.1.2 the ooa landscape 573 21.1.3 a unified approach to ooa 575 21.2 domain analysis 576 21.2.1 reuse and domain analysis 577 21.2.2 the domain analysis process 577 21.3 generic components of the oo analysis model 579 21.4 the ooa process 581 21.4.1 use-cases 581 21.4.2 class-responsibility-collaborator modeling 582 21.4.3 defining structures and hierarchies 588 21.4.4 defining subjects and subsystems 590 21.5 the object-relationship model 591 21.6 the object-behavior model 594 21.6.1 event identification with use-cases 594 21.6.2 state representations 595 21.7 summary 598 References 599 Problems and points to ponder 600 Further readings and information sources 601 Chapter 22 object-oriented design 603 22.1 design for object-oriented systems 604 22.1.1 conventional vs. Oo approaches 605 22.1.2 design issues 607 22.1.3 the ood landscape 608 22.1.4 a unified approach to ood 610 22.2 the system design process 611 22.2.1 partitioning the analysis model 612 22.2.2 concurrency and subsystem allocation 613 22.2.3 the task management component 614 22.2.4 the user interface component 615 22.2.5 the data management component 615 22.2.6 the resource management component 616 22.2.7 intersubsystem communication 616 22.3 the object design process 618 22.3.1 object descriptions 618 22.3.2 designing algorithms and data structures 619 22.3.3 program components and interfaces 621 22.4 design patterns 624 22.4.1 describing a design pattern 624 22.4.2 using patterns in design 625 22.5 object-oriented programming 625 22.6 summary 626 References 627 Problems and points to ponder 628 Further readings and information sources 629 Chapter 23 object-oriented testing 631 23.1 broadening the view of testing 632 23.2 testing ooa and ood models 633 23.2.1 correctness of ooa and ood models 633 23.2.2 consistency of ooa and ood models 634 23.3 object-oriented testing strategies 636 23.3.1 unit testing in the oo context 636 23.3.2 integration testing in the oo context 637 23.3.3 validation testing in an oo context 637 23.4 test case design for oo software 637 23.4.1 the test case design implications of oo concepts 638 23.4.2 applicability of conventional test case design methods 638 23.4.3 fault-based testing 639 23.4.4 the impact of oo programming on testing 640 23.4.5 test cases and the class hierarchy 641 23.4.6 scenario-based test design 641 23.4.7 testing surface structure and deep structure 643 23.5 testing methods applicable at the class level 644 23.5.1 random testing for oo classes 644 23.5.2 partition testing at the class level 644 23.6 interclass test case design 645 23.6.1 multiple class testing 645 23.6.2 tests derived from behavior models 647 23.7 summary 648 References 649 Problems and points to ponder 649 Further readings and information sources 650 Chapter 24 technical metrics for object-oriented systems 653 24.1 the intent of object-oriented metrics 654 24.2 the distinguishing characteristics of object-oriented metrics 654 24.2.1 localization 655 24.2.2 encapsulation 655 24.2.3 information hiding 655 24.2.4 inheritance 656 24.2.5 abstraction 656 24.3 metrics for the oo design model 656 24.4 class-oriented metrics 658 24.4.1 the ck metrics suite 658 24.4.2 metrics proposed by lorenz and kidd 661 24.4.3 the mood metrics suite 662 24.5 operation-oriented metrics 664 24.6 metrics for object-oriented testing 664 24.7 metrics for object-oriented projects 665 24.8 summary 666 References 667 Problems and points to ponder 668 Further readings and information sources 669 Part five-advanced topics in software engineering 671 Chapter 25 formal methods 673 25.1 basic concepts 674 25.1.1 deficiencies of less formal approaches 675 25.1.2 mathematics in software development 676 25.1.3 formal methods concepts 677 25.2 mathematical preliminaries 682 25.2.1 sets and constructive specification 683 25.2.2 set operators 684 25.2.3 logic operators 686 25.2.4 sequences 686 25.3 applying mathematical notation for formal specification 687 25.4 formal specification languages 689 25.5 using z to represent an example software component 690 25.6 the ten commandments of formal methods 693 25.7 formal methods-the road ahead 694 25.8 summary 695 References 695 Problems and points to ponder 696 Further readings and information sources 697 Chapter 26 cleanroom software engineering 699 26.1 the cleanroom approach 700 26.1.1 the cleanroom strategy 701 26.1.2 what makes cleanroom different? 703 26.2 functional specification 703 26.2.1 black-box specification 705 26.2.2 state-box specification 705 26.2.3 clear-box specification 706 26.3 cleanroom design 706 26.3.1 design refinement and verification 707 26.3.2 advantages of design verification 710 26.4 cleanroom testing 712 26.4.1 statistical use testing 712 26.4.2 certification 714 26.5 summary 714 References 715 Problems and points to ponder 716 Further readings and information sources 717 Chapter 27 component-based software Engineering 721 27.1 engineering of component-based systems 722 27.2 the cbse process 724 27.3 domain engineering 725 27.3.1 the domain analysis process 726 27.3.2 characterization functions 727 27.3.3 structural modeling and structure points 728 27.4 component-based development 730 27.4.1 component qualification, adaptation, and composition 730 27.4 2 component engineering 734 27.4.3 analysis and design for reuse 734 27.5 classifying and retrieving components 735 27.5.1 describing reusable components 736 27.5.2 the reuse environment 738 27.6 economics of cbse 739 27.6.1 impact on quality, productivity, and cost 739 27.6.2 cost analysis using structure points 741 27.6.3 reuse metrics 741 27.7 summary 742 References 743 Problems and points to ponder 744 Further readings and information sources 745 Chapter 28 client/server software engineering 747 28.1 the structure of client/server systems 748 28.1.1 software components for c/s systems 750 28.1.2 the distribution of software components 750 28.1.3 guidelines for distributing application subsystems 752 28.1.4 linking c/s software subsystems 753 28.1.5 middleware and object request broker architectures 753 28.2 software engineering for c/s systems 755 28.3 analysis modeling issues 755 28.4 design for c/s systems 755 28.4.1 architectural design for client/server systems 756 28.4.2 conventional design approaches for application software 757 28.4.3 database design 758 28.4.4 an overview of a design approach 759 28.4.5 process design iteration 761 28.5 testing issues 761 28.5.1 overall c/s testing strategy 762 28.5.2 c/s testing tactics 763 28.6 summary 764 References 764 Problems and points to ponder 765 Further readings and information sources 766 Chapter 29 web engineering 769 29.1 the attributes of web-based applications 771 29.1.1 quality attributes 773 29.1.2 the technologies 773 29.2 the webe process 774 29.3 a framework for webe 775 29.4 formulating/analyzing web-based systems 776 29.4.1 formulation 776 29.4.2 analysis 778 29.5 design for web-based applications 779 29.5.1 architectural design 780 29.5.2 navigation design 783 29.5.3 interface design 785 29.6 testing web-based applications 786 29.7 management issues 787 29.7.1 the webe team 788 29.7.2 project management 789 29.7.3 scm issues for webe 792 29.8 summary 794 References 795 Problems and points to ponder 796 Further readings and information sources 797 Chapter 30 reengineering 799 30.1 business process reengineering 800 30.1.1 business processes 800 30.1.2 principles of business process reengineering 801 30.1.3 a bpr model 802 30.1.4 words of warning 804 30.2 software reengineering 804 30.2.1 software maintenance 804 30.2.2 a software reengineering process model 805 30.3 reverse engineering 809 30.3.1 reverse engineering to understand processing 810 30.3.2 reverse engineering to understand data 811 30.3.3 reverse engineering user interfaces 812 30.4 restructuring 813 30.4.1 code restructuring 814 30.4.2 data restructuring 814 30.5 forward engineering 814 30.5.1 forward engineering for client/server architectures 816 30.5.2 forward engineering for object-oriented Architectures 817 30.5.3 forward engineering user interfaces 818 30.6 the economics of reengineering 819 30.7 summary 820 References 820 Problems and points to ponder 822 Further readings and information sources 823 Chapter 31 computer-aided software engineering 825 31.1 what is case? 826 31.2 building blocks for case 826 31.3 a taxonomy of case tools 828 31.4 integrated case environments 833 31.5 the integration architecture 834 31.6 the case repository 836 31.6.1 the role of the repository in i-case 836 31.6.2 features and content 837 31.7 summary 841 References 842 Problems and points to ponder 842 Further readings and information sources 843 Chapter 32 the road ahead 845 32.1 the importance of software-revisited 846 32.2 the scope of change 847 32.3 people and the way they build systems 847 32.4 the "new" software engineering process 848 32.5 new modes for representing information 849 32.6 technology as a driver 851 32.7 a concluding comment 852 References 853 Problems and points to ponder 853 Further readings and information sources 853