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

Slides:



Advertisements
Similar presentations
Use Case & Use Case Diagram
Advertisements

1 Object-oriented design Part 2: OO tools & UML. 2 CRC cards Design tool & method for discovering classes, responsibilities, & relationships Record on.
Use Case Modeling SJTU. Unified Modeling Language (UML) l Standardized notation for object-oriented development l Needs to be used with an analysis and.
USE CASE – ATM EXAMPLE Actors: ATM Customer ATM Operator Use Cases: The customer can withdraw funds from a checking or savings account query the balance.
SWE 214 (071) Use Case Diagrams Slide 1 Use Case Diagrams Examples.
UML and Systems Analysis MIS3502: Application Integration and Evaluation David Schuff
CPSC 333: Foundations of Software EngineeringJ. Denzinger Small Test: Bank account manager System has to run on an automated teller machine. User must.
Ch 12: Object-Oriented Analysis
Introduction to Software Testing Chapter 2.6 Graph Coverage for Use Cases Paul Ammann & Jeff Offutt
Assignment I, part 1. Groups of three students. Specify one as group leader. group names to TA and me. Create an object-oriented conceptualization.
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
Sequence Diagrams. Introduction A Sequence diagram depicts the sequence of actions that occur in a system. The invocation of methods in each object, and.
CS3773 Software Engineering Lecture 03 UML Use Cases.
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
Lecture 9 Object-Oriented Analysis
Chapter 12 ATM Case Study, Part 1: Object-Oriented Design with the UML
Tutorial 2. What is a UML Use Case Diagram? Use case diagrams model the functionality of a system using actors and use cases. Use cases are services or.
Object Oriented Analysis Process
Marcelo Santos – OOAD-CDT309, Spring 2008, IDE-MdH 1 Object-Oriented Analysis and Design - CDT309 Period 4, Spring 2008 More on use cases System sequence.
Call Manager - Quick Reference Guide Initiate a Call 1.Select a Phone List. Click Tab to expose list. 2.Select a phone number. Click phone number to populate.
{ How to Use An ATM A simple tutorial to teach how to use ATM Machines.
1 Lab Beginning Analysis and Design 4 Completion of first version of use case diagram initiates the processes of analysis and design. 4 UML provides.
INTERACTION DIAGRAMS Example Kingdom of Saudi Arabia Ministry of Higher Education Princess Noura bint Abdulrahman University College of Computer & Information.
Use Case Modeling. Use case diagram For each use case we develop  Object class diagram (with attributes only)  System sequence diagram (analysis) 
Chapter 2 (Horstmann’s Book) – Part 2 The Object-Oriented Design Process Hwajung Lee.
From Problem Statement to Design
Object-Oriented Design & Patterns Cay S
Use Cases 2 ENGR ♯10 Peter Andreae
Merijn Benjamin Christina
111 Subsystems CS 4311 Wirfs Brock et al., Designing Object-Oriented Software, Prentice Hall, (Chapter 7)
Glenn David Blank Computer Science & Engineering Department Lehigh University, Bethlehem, PA, USA With support from the National Science Foundation (Grants.
UML and Systems Analysis
Use Case Modeling 中国科学技术大学软件学院 孟宁 2011年9月.
1 Object-Oriented Analysis Use Case Driven. 2 The outline method for OOA 1.Identify object classes within the problem domain 2.Define the behaviour of.
Faculty of Computer & Information Software Engineering Third year
USE CASE Bayu Adhi Tama, MTI Faculty of Computer Science, University of Sriwijaya Slides are adapted from Petrus Mursanto
Faculty of Computer & Information
Use Case Modeling Chapter 7 Part of Requirements Modeling Designing Concurrent, Distributed, and Real-Time Applications with UML Hassan Gomaa (2001)
Lecture OO05 Object Scenarios Object Interaction Diagrams
What are Sequence Diagrams? Collaboration Diagrams allow designer to specify message flow between collaborating objects –Focus on relationship between.
CS 151: Object-Oriented Design September 5 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron Mak
CH-4 Advanced class modeling. BookChapter N composed-of Booch BookChapter composed-of UML 1* Figure 2-7. Example of describing a model with two different.
1 Graph Coverage (6). Reading Assignment P. Ammann and J. Offutt “Introduction to Software Testing” ◦ Section
ATM Adv. SW Engineering
CS212: Object Oriented Analysis and Design Lecture 32: Use case and Class diagrams.
111 Subsystems CS 4311 Wirfs Brock et al., Designing Object-Oriented Software, Prentice Hall, (Chapter 7)
Learning Intentions Explain what an ATM is and the facilities offered Identify the stages of withdrawing cash from an ATM List the advantages and disadvantages.
1 LAB What is Collaboration diagram? 4 Collaboration diagrams illustrate the interaction between the objects, using static spatial structure. 4.
OO DomainModeling With UML Class Diagrams and CRC Cards Chapter 6 Princess Nourah bint Abdulrahman University College of Computer and Information Sciences.
1 Object-Oriented Static Modeling of the Banking System - III Lecture # 33.
Inf 43: Introduction to Software Engineering May 7, 2016.
1 Case Study and Use Cases for Case Study Lecture # 28.
Using Use Case Diagrams
ATM OO Design and Implementation Case Study
How does it work? What is it made of? What is it made of?
Storyboarding and Game Design SBG, MBG620 Full Sail University
Dynamic Modeling of Banking System Case Study - I
Object-Oriented Static Modeling of the Banking System - I
OO Domain Modeling With UML Class Diagrams and CRC Cards
Object Oriented Modeling and Design
Object Oriented Modeling and Design
Chapter 8: Modelling Interactions and Behaviour UML Activity Diagram
OO Domain Modeling With UML Class Diagrams and CRC Cards
Concepts, Specifications, and Diagrams
SAD ::: Spring 2018 Sabbir Muhammad Saleh
Call Manager - Quick Reference Guide
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
Using Use Case Diagrams
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
Real-Time Structured Analysis and Design Technique (RSTAD)
Presentation transcript:

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 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

Class Diagrams Associations –Associations ends –Role names –Multiplicity –navigability Uni/Multidirectional Generalization Constrains

Aggregation / Composition

Many to many associations and link

Modeling an association as a class

Association Class

Role names for directory hierarchy

Ordering Qualified association

Interfaces and Abstract Classes Generalization Realization Dependency

Derived Associations and Attributes

Qualified Association

Sequence Diagram

Collaboration Diagram

State Diagram

Super State

Activity Diagram

Composite Activity

Swimlanes

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 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

ATM Sequence diagram

Exercises

(X + Y/2) / (X/3 + Y)

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

State diagram 1.Caller lifts receiver 2.Dial tons begins 3.Caller dials digit (5) 4.Dial tons ends 5.Caller dials digit (5) 6.Caller dials digit (5) 7.Caller dials digit (1) 8.Caller dials digit (2) 9.Caller dials digit (3) 10.Caller dials digit (4) 11.Called phone beings ringing 12.Ringing tones appears in calling phone 13.Called party answers 14.Called phone stops ringing 15.Ringing phone disappears in calling phone 16.Phones are connected 17.Called party hangs-up 18.Phones are disconnected 19.Caller hangs-up

State Diagram