1 / 31

UML basics

UML basics. UML distilled, a brief guide to the standard Modeling language, by Martin Fowler, 2000. ATM scenario from Object-Oriented Modeling and Design, by J.Rumbaugh, 1991. The ATM asks the user to insert a card The ATM accepts the card and reads its serial number

cady
Télécharger la présentation

UML basics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. UML basics UML distilled, a brief guide to the standard Modeling language, by Martin Fowler, 2000

  2. ATM scenariofrom Object-Oriented Modeling and Design, by J.Rumbaugh, 1991 • The ATM asks the user to insert a card • The ATM accepts the card and reads its serial number • The ATM requests the password • The ATM verifies the serial number and password with the consortium, the consortium checks it with the bank and notifies the ATM of acceptance • The ATM asks the user to select the kind of transaction (withdrawal, deposit, …). The user select withdrawal • The ATM asks for the amount of cash • The ATM verifies that the amount is within predefined policy limits and asks the consortium to process the transaction. The consortium passes the request to the bank, which eventually confirms success and returns the new account balance • The ATM dispenses cash and asks the user to take it • The ATM asks whether the user wants to continue, the user indicates no • The ATM prints a receipt, ejects the card, and asks the user to take them • The ATM asks a user to insert a card

  3. Class Diagrams • Associations • Associations ends • Role names • Multiplicity • navigability • Uni/Multidirectional • Generalization • Constrains

  4. Aggregation / Composition

  5. Many to many associations and link

  6. Modeling an association as a class

  7. Association Class

  8. Role names for directory hierarchy

  9. Ordering Qualified association

  10. Interfaces and Abstract Classes • Generalization • Realization • Dependency

  11. Derived Associations and Attributes

  12. Qualified Association

  13. Sequence Diagram

  14. Collaboration Diagram

  15. State Diagram

  16. State Diagram

  17. Super State

  18. Activity Diagram

  19. Composite Activity

  20. Swimlanes

  21. ATM scenariofrom Object-Oriented Modeling and Design, by J.Rumbaugh, 1991 • The ATM asks the user to insert a card • The ATM accepts the card and reads its serial number • The ATM requests the password • The ATM verifies the serial number and password with the consortium, the consortium checks it with the bank and notifies the ATM of acceptance • The ATM asks the user to select the kind of transaction (withdrawal, deposit, …). The user select withdrawal • The ATM asks for the amount of cash • The ATM verifies that the amount is within predefined policy limits and asks the consortium to process the transaction. The consortium passes the request to the bank, which eventually confirms success and returns the new account balance • The ATM dispenses cash and asks the user to take it • The ATM asks whether the user wants to continue, the user indicates no • The ATM prints a receipt, ejects the card, and asks the user to takes them • The ATM asks a user to insert a card

  22. ATM Sequence diagram

  23. Exercises

  24. Exercises

  25. Exercises

  26. Exercises (X + Y/2) / (X/3 + Y)

  27. Categorize relationships • A country has a capital city • A person use a fork • A file is an ordinary file or a directory file • Files contains records • A polygon is composed of ordered set of points • A drawing object is text, a geometrical object or a group • A person use computer language on a project • Modem and keyboard are input / output devices • A person plays in a team in certain year • A rout connects two cities • A studen takes a course from a professor

  28. State diagram • Caller lifts receiver • Dial tons begins • Caller dials digit (5) • Dial tons ends • Caller dials digit (5) • Caller dials digit (5) • Caller dials digit (1) • Caller dials digit (2) • Caller dials digit (3) • Caller dials digit (4) • Called phone beings ringing • Ringing tones appears in calling phone • Called party answers • Called phone stops ringing • Ringing phone disappears in calling phone • Phones are connected • Called party hangs-up • Phones are disconnected • Caller hangs-up

  29. State Diagram

  30. State Diagram

  31. State Diagram

More Related