




























































































Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!





























































































Learning UML 2. By Kim Hamilton, Russell Miles ............................................... Publisher: O'Reilly Pub Date: April 2006 Print ISBN-10: 0-596-00982- Print ISBN-13: 978-0-59-600982- Pages: 286
Table of Contents | Index
"Since its original introduction in 1997, the Unified Modeling Language has revolutionized software development. Every integrated software development environment in the world--open-source, standards-based, and proprietary--now supports UML and, more importantly, the model-driven approach to software development. This makes learning the newest UML standard, UML 2.0, critical for all software developers--and there isn't a better choice than this clear, step-by-step guide to learning the language." --Richard Mark Soley, Chairman and CEO, OMG
If you're like most software developers, you're building systems that are increasingly complex. Whether you're creating a desktop application or an enterprise system, complexity is the big hairy monster you must manage.
The Unified Modeling Language (UML) helps you manage this complexity. Whether you're looking to use UML as a blueprint language, a sketch tool, or as a programming language, this book will give you the need-to-know information on how to apply UML to your project. While there are plenty of books available that describe UML, Learning UML 2.0 will show you how to use it. Topics covered include:
Capturing your system's requirements in your model to help you ensure that your designs meet your users' needs
Engaging and accessible, this book shows you how to use UML to craft and communicate your project's design. Russ Miles and Kim Hamilton have written a pragmatic introduction to UML based on hard-earned practice, not theory. Regardless of the software process or methodology you use, this book is the one source you need to get up and running with UML 2.0. Additional information including exercises can be found at www.learninguml2.com.
Process Section 1.6. Views of Your Model Section 1.7. A First Taste of UML Section 1.8. Want More Information?
Chapter
Modeling Requirements: Use Cases Section 2.1. Capturing a System Requirement Section 2.2. Use Case Relationships Section 2.3. Use Case Overview Diagrams Section 2.4. What's Next?
Chapter
Modeling System Workflows: Activity
Diagrams Section 3.1. Activity Diagram Essentials Section 3.2. Activities and Actions Section 3.3. Decisions and Merges Section 3.4. Doing Multiple Tasks at the Same Time Section 3.5. Time Events Section 3.6. Calling Other Activities Section 3.7. Objects Section 3.8. Sending and Receiving Signals Section 3.9. Starting an Activity Section 3.10. Ending Activities and Flows
Operations Section 4.6. Static Parts of Your Classes Section 4.7. What's Next
Chapter
Modeling a System's Logical Structure: Advanced Class Diagrams Section 5.1. Class Relationships Section 5.2. Constraints Section 5.3. Abstract Classes Section 5.4. Interfaces Section 5.5. Templates Section 5.6. What's Next
Chapter
Bringing Your Classes to Life: Object Diagrams
Section 6.1. Object Instances Section 6.2. Links Section 6.3. Binding Class Templates Section 6.4. What's Next?
Chapter
Modeling Ordered Interactions: Sequence Diagrams Section 7.1. Participants in a Sequence Diagram Section 7.2. Time Section 7.3. Events, Signals, and Messages Section 7.4. Activation Bars Section 7.5. Nested Messages Section 7.6. Message Arrows Section 7.7.
Section 8.4. What's Next?
Chapter
Focusing on Interaction Timing: Timing Diagrams Section 9.1. What Do Timing Diagrams Look Like? Section 9.2. Building a Timing Diagram from a Sequence Diagram Section 9.3. Applying Participants to a Timing Diagram Section 9.4. States Section 9.5. Time Section 9.6. A Participant's State-Line Section 9.7. Events and
Messages Section 9.8. Timing Constraints Section 9.9. Organizing Participants on a Timing Diagram Section 9.10. An Alternate Notation Section 9.11. What's Next?
Chapter
Completing the Interaction Picture: Interaction Overview Diagrams Section 10.1. The Parts of an Interaction Overview Diagram Section 10.2. Modeling a Use Case Using an Interaction Overview Section 10.3. What's
Component in UML Section 12.3. Provided and Required Interfaces of a Component Section 12.4. Showing Components Working Together Section 12.5. Classes That Realize a Component Section 12.6. Ports and Internal Structure Section 12.7. Black-Box and White-Box Component Views Section 12.8. What's Next?
Chapter
Organizing Your Model: Packages Section 13.1. Packages Section 13.2.
Namespaces and Classes Referring to Each Other Section 13.3. Element Visibility Section 13.4. Package Dependency Section 13.5. Importing and Accessing Packages Section 13.6. Managing Package Dependencies Section 13.7. Using Packages to Organize Use Cases Section 13.8. What's Next?
Chapter
Modeling an Object's State: State Machine Diagrams Section 14.1. Essentials Section 14.2. States
What Is a Node? Section 15.4. Hardware and Execution Environment Nodes Section 15.5. Communication Between Nodes Section 15.6. Deployment Specifications Section 15.7. When to Use a Deployment Diagram Section 15.8. What's Next?
Appendix A. Object Constraint Language Section A.1. Building OCL Expressions Section A.2. Types Section A.3. Operators Section A.4. Pulling It
Together Section A.5. Context Section A.6. Types of Constraints Section A.7. OCL Automation
Appendix B. Adapting UML: Profiles Section B.1. What Is a Profile? Section B.2. Stereotypes Section B.3. Tagged Values Section B.4. Constraints Section B.5. Creating a Profile Section B.6. Working with the Meta-Model Section B.7. Using a Profile Section B.8. Why
Published by O'Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O'Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (safari.oreilly.com). For more information, contact our corporate/institutional sales department: (800) 998-9938 or [email protected].
Editors: Brett McLaughlin and Mary T. O'Brien
Production Editor: Laurel R.T. Ruma
Copyeditor: Laurel R.T. Ruma
Proofreader: Reba Libby
Indexer: Angela Howard
Cover Designer: Karen Montgomery
Interior Designer: David Futato
Cover Illustrator: Karen Montgomery
Illustrators: Robert Romano, Jessamyn Read, and Lesley Borash
Printing History:
April 2006: First Edition.
Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly Media, Inc. Learning UML 2.0, the image of a gorilla, and related trade dress are trademarks of O'Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O'Reilly Media, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.
ISBN: 0-596-00982-
The Unified Modeling Language (UML) is the standard way to model systems, particularly software systems. If you are working on a system beyond "Hello, World," then having UML in your toolbox of skills is a must, and that's where Learning UML 2.0 comes in.
Learning UML 2.0 is about coming to grips with UML quickly, easily, and practically. Along with a thorough set of tutorials on each of the different UML diagram types, this book gives you the tools to use UML effectively when designing, implementing, and deploying systems. The topics covered include:
Learning UML 2.0 is for anyone interested in learning about UML, but it is helpful to have some exposure to object-oriented (OO) design and some familiarity with Java. However, even if you have only a small amount of experience with object orientation, Learning UML 2.0 will improve and extend your knowledge of OO concepts and give you a comprehensive set of tools to work with UML.
Although this book is intended to take you through each subject on the path to learning UML, some UML modeling subjects, such as use cases and activity diagrams, are self-explanatory, which means you can dive right into them.
Learning UML 2.0 aims to answer the "what," "how," and "why should I care?" for every aspect of UML. Each chapter picks one subject from UML and explains it based on these questions.
Since not everyone is new to UML, there are two main routes through this book. If you're new to UML as a subject and want to get an overview of where the modeling language came from, then you should start with Chapter 1. However, if you want to get your hands dirty as quickly as possible, then you can either skip the introduction chapter to delve directly into use cases or jump to the chapter that describes the UML diagram in which you are most interested.
Now you know what Learning UML 2.0 is about, it should be explained what this book is not about. This book is not about any one particular modeling tool or implementation language. However, some tools have their own way of doing things, and some implementation languages do not support everything you can legally model in UML. Wherever appropriate, we have tried to point out where UML tools or implementation languages deviate from or follow the UML standard.
Lastly, because of the large variation in software development processes, this book is not about any particular process or methodology. Instead, it focuses on modeling and provides guidelines about appropriate levels of modeling that can be applied in the context of your software development process. Since this book adheres to the UML 2.0 standard, it works alongside any process or methodology you use.
The following general assumptions are made as to the reader's knowledge and experience: