3. Quick Side Note: “The” UML
I refuse to refer to it as “the” UML. I will simply
refer to the topic as “UML.”
4. Who created UML?
• Created by the Object Management Group in
around 1997.
• UML is a consolidation of various competing
modeling languages.
• James Rumbaugh, Grady Booch, and Ivar
Jacobson – collectively known as “The Three
Amigos.”
5. What is UML?
• A graphical modeling language.
• UML means “Unified Modeling Language”.
• Consists of 14 types of diagrams.
– Structural diagrams
– Behavioral diagrams
• UML modeling tools can be found in Eclipse,
NetBeans, and Visual Studio.
6.
7. Why use UML?
• A standard way to communicate ideas
• Use as a sketch
• Use as a blueprint
• Use UML as a programming language. UML
can be compiled into an application.
(don’t do this)
9. Most Common UML Diagrams
• Use Case Diagrams
• Class Diagrams
• Sequence Diagrams
10. Diagram
Behavior Diagram Structure Diagram
Activity Use State Interaction Class Composite Structure Object
Case Machine
Timing Interaction Communication Sequence Package Deployment Component
Overview
11.
12. Use Case Diagram
• Very similar to “user stories” in XP, but
generally more detailed.
• Includes alternatives to success.
13. Use Case Diagram (example)
BUY A PRODUCT
•Main Success:
1. Customer browses catalog and selects items
2. Customer chooses to checkout
3. Customer fills in shipping information
4. ….
10. System sends confirmation e-mail to customer
14. Use Case Diagram (example)
• Extensions:
3a. Customer is repeat visitor
.1 System displays default user address
.2 Customer chooses to use existing address or
enter a new address
10a. System receives bounce back from bad e-mail
address.
.1 System alerts supervisor to attempt to call
customer.
15. Use Case Diagram (example)
Browse Catalog
Checkout Records Transaction
Enter Shipping Info
Customer Calls Customer Accounting
System
Supervisor
27. Diagram
Behavior Diagram Structure Diagram
Activity Use State Interaction Class Composite Structure Object
Case Machine
Timing Interaction Communication Sequence Package Deployment Component
Overview