Diagram Notations

Slides:



Advertisements
Similar presentations
Architecture. Outline Example Decomposition Style Activity 1.
Advertisements

Use Case & Use Case Diagram
Diagram Notations
Schedule and Effort. Planning Big Project: Waterfall-ish Style 1.Figure out what the project entails Requirements, architecture, design 2.Figure out dependencies.
Paper Prototyping.
Object-Oriented Design
Systems Analysis and Design 8th Edition
Android programming club Thursdays 5-7pm Info… Ryley Herrington iOS programming club Info… Ben Lanegan or.
Systems Analysis and Design in a Changing World, Fourth Edition
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 5: Restaurant.
Design Patterns in Java Appendix D UML at a Glance Summary prepared by Kirk Scott 1.
Schedule & effort.
Diagram Notations
Essentials of interaction diagrams Lecture Outline Collaborations Interaction on collaboration diagrams Sequence diagrams Messages from an object.
© 2005 Prentice Hall4-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
Requirements
University of Toronto Department of Computer Science © Steve Easterbrook. This presentation is available free for non-commercial use with attribution.
Object-Oriented Design
7. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Detailed Object-Oriented Requirements Definitions  System Processes—A Use.
03/12/2001 © Bennett, McRobb and Farmer Use Case Diagrams Based on Chapter 6 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis and.
Systems Analysis I Data Flow Diagrams
Unified Modeling Language
The Unified Modeling Language (UML) Class Diagrams.
Chapter 7: The Object-Oriented Approach to Requirements
CS 4310: Software Engineering Lecture 3 Requirements and Design.
UML Collaboration Diagram. Recap System Sequence Diagrams (SSD) UML for SSD Examples.
Lecture 6 Unified Modeling Language (UML)
The Next Stage in Analysis: Systems Use Case Diagrams 1 SYS366.
程建群 博士(Dr. Jason Cheng) 年03月
Chapter 7 Structuring System Process Requirements
Schedule & effort.
4 2009/10 Object Oriented Technology 1 Topic 4: The Object-Oriented Approach to Requirements Adopted from: Ch.7 The Object-Oriented Approach to Requirements.
Requirements Documentation CSCI 5801: Software Engineering.
In-Class Interviewing Activity (Grocery example) You can conduct a semi-structured/unstructured interview: How: Use the process outlined here. Individually.
Systems Analysis & Design 7 th Edition Chapter 5.
Systems Analysis and Design 8 th Edition Chapter 6 Object Modeling.
7 Systems Analysis and Design in a Changing World, Fifth Edition.
1 Structuring Systems Requirements Use Case Description and Diagrams.
Discovering object interaction. Use case realisation The USE CASE diagram presents an outside view of the system. The functionality of the use case is.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
Appendix D UML at a Glance Summary prepared by Kirk Scott 1.
Object-Oriented Design
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
Systems Analysis and Design in a Changing World, Fourth Edition
Notations. Requirements Documentation Typical parts of Requirements Document Functional requirements Behavior of the software system Nonfunctional requirements.
Schedule & effort.
Object-Oriented Design. 1 Objects and concerns Objects have a concern, meaning they have a purpose Not concerned as in worried All code should have a.
INFO 620Lecture #71 Information Systems Analysis and Design Design Class Diagrams and others INFO 620 Glenn Booker.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Object-Oriented Systems Analysis and Design Using UML Systems Analysis and Design,
Requirements
Chapter 3: Introducing the UML
Capturing Requirements. Questions to Ask about Requirements 1)Are the requirements correct? 2)Consistent? 3)Unambiguous? 4)Complete? 5)Feasible? 6)Relevant?
Use Case Diagrams. Introduction In the previous Lecture, you saw a brief review of the nine UML diagrams. Now that you have the clear, you'll start to.
Requirements. Outline Definition Requirements Process Requirements Documentation Next Steps 1.
CHAPTER 6 OBJECT ANALYSIS.
E- Patient Medical History System
WHAT IS A Context Diagram?
Appendix 3 Object-Oriented Analysis and Design
CHAPTER
Using Use Case Diagrams
Course Outcomes of Object Oriented Modeling Design (17630,C604)
Unified Modeling Language
The Next Stage in Analysis: Systems Use Case Diagrams
OO Domain Modeling With UML Class Diagrams and CRC Cards
SAD ::: Spring 2018 Sabbir Muhammad Saleh
CIS 375 Bruce R. Maxim UM-Dearborn
Using Use Case Diagrams
Diagram Notations
CIS 375 Bruce R. Maxim UM-Dearborn
Object Oriented System Design Class Diagrams
Presentation transcript:

Diagram Notations

Did you plan to build the Enterprise all on your own???? Diagrams are often useful when… – You need to communicate, visualize, or analyze something – And that something has some sort of structure

Typical parts of requirements documentation Overall System Description Diagrams – Class diagrams and entity-relationship diagrams – Dataflow, sequence, and state diagrams Functional requirements – Unstructured text – Use cases Non-functional requirements – Unstructured text – Fit criteria

Use case diagram: shows activities supported by the system Repressed citizen UC#1: Report repressionUC#2: Clarify tweet Concerned public UC#3: View reports UC#3a: View on mapUC#3b: View as RSS feed

Notes on use case diagrams Stick man for user Ovals for use cases – Italicize “abstract” use cases Simple arrows when a UC “calls” another Hollow arrowheads for specialization – Similar to the role that subclassing plays in OO

UML class diagram: shows entities, attributes, relationships User + Twitter username Repression report + source (tweet) + location (geocode) + when (datetime) + details (string) * * Repression view + reports * Google map view + JavaScript RSS View + XML text Repression tweet + user + when (datetime) + text (string) 1 * System boundary Clarification tweet + report + when (datetime) + text (string) *

Notes on UML class diagrams One box per kind of entity, listing attributes – Italicize abstract entities, attributes Lines without arrowheads show references – Similar to member variables in OO – Labeled with cardinality (multiplicity) Integers, ranges, or asterisk (for unlimited) Lines with hollow arrowheads for specialization Lines with regular arrowheads can be used to indicate dependencies – Usually omitted in requirements’ class diagrams

Entity-relationship diagram: shows entities, attributes, relationships User Twitter username Repression report source (tweet) location (geocode) when (datetime) details (string) Clarification tweet report when (datetime) text (string) Repression view reports r s p q Google map view JavaScript RSS View XML text yields shows asks about Repression tweet user when (datetime) text (string) writes 1 n

Notes on entity-relationship diagrams (ERDs) One box per kind of entity List entities on branches Lines with a diamond show relationships – Diamond label indicates role of relationship Numbers or variables on lines show cardinality

Dataflow diagram: shows flow of information Reporter Viewing user Report Twitter DB Send clar req Reports DB Inter- pret Clarify Geocoder RSS View Repression info Tweet Tweet Geocode Location Raw report Clarification message Tweet Report Reports RSS feed Map View Map Reports

Notes on dataflow diagrams Each oval is a “function” provided by system. – Each inward arrow is a parameter (labeled) – Each outward arrow is an output (labeled) Each rectangle is an actor – A person, place, or thing that can do stuff and/or initiate events Each “half-rectangle” is a data store (file or database) Often clearer if you do a separate dataflow diagram for each use case

Message sequence diagram: shows flow of control UserTwitterSystemDatabase Tweet event Read tweets Request to clarify [if location== null] Deliver request Geocoder Geocode location Request tweets with API

Notes on message sequence diagrams One box per entity involved – E.g.: if you have two users interacting with each other, then you would have two boxes – Each box has a dashed line, showing its “lifetime”, which can end if an object is destroyed Arrows show messages – Also, draw an dashed arrow back if there’s a return value Conditionals are written with brackets [ ] – Loops can be enclosed in a shaded box

Statecharts: shows change over time

Notes on Statecharts One box per state Arrows show a possible state transition – Annotated to indicate under what conditions the transition occurs Filled circle shows where you “start” Nested filled circle shows where you “stop” Nested “statecharts” allowed

Putting it together: a typical requirements document Requirements definition – Unstructured text: functional & non-functional reqs – Use case descriptions – Class diagrams or ERDs showing external entities Requirements specification – Unstructured text: functional & non-functional reqs – Dataflow diagram – Message sequence diagrams or state charts

An example system to support drug and alcohol counseling

Requirements definition, functional reqs, unstructured text Before each counseling visit, each counselee takes a survey. After each survey, the system prints a report showing the counselee’s progress. Administrative assistants can add counselees and their counselors to the system. Requirements definition: written from external viewpoint; system is like a “black box”

Requirements definition, non-functional reqs, with fit criteria Each survey will be short enough for an average user to complete within 10 minutes. Progress reports will each be 2 pages or less. The system will print progress reports within 2 minutes of a survey’s completion. Users can take a survey using a Windows machine that has a Pentium II 550 MHz CPU, with 0.5 GB of RAM. Requirements definition: written from external viewpoint; system is like a “black box”

UC#1: Survey and report Title (goal)Receive report of progress Primary ActorCounselee Goal in ContextCounselee fills out a survey and receives a report PreconditionsCounselee is registered in the system PostconditionsSystem records counselee progress data System prints report for counselor Story1.Counselee logs into the system using last name and PIN 2.System asks counselee survey questions 3.Counselee provides survey responses 4.System stores each survey response in database 5.System prints report when counselee completes survey

Class diagram of entities

Requirements specification, functional reqs, unstructured text Requirements specification: written from system’s viewpoint, involving internal details of system Req. IDDescriptionTrace Link FR 1Data Storage and Printing FR 1.1After answering each question, the system stores the responses for the question in the database. Client Deliverable 0 FR 1.2At the end of the survey, the system sends a report to the printer.Negotiation on Jan 17, 2013 FR 2Record Management of User Records FR 2.1The system provides a screen for creating, updating, and deleting counselee records from the database. Client Deliverable 0 FR 2.2The system provides a screen for creating, updating, and deleting counselor records from the database. Client Deliverable 0

Requirements specification, non-functional reqs, with fit criteria Requirements specification: written from system’s viewpoint, involving internal details of system Req. IDDescriptionTrace Link CR 1Language and system constraints CR 1.195% of the code will be platform-independent: written in Java or platform-independent Javascript Client negotiation (Jan 17, 2013) QR 1Data Reliability QR 1.1The system records completed surveys in the database within 30 seconds Client Deliverable 0 QR 1.2The system sends completed reports to the printer within 30 seconds Client Deliverable 0 QR 1.3The printed report will emerge from the printer 30 seconds after receiving the print request (Jan 21, 2013)

Dataflow diagram (note: only shows UC#1) Survey DB Survey Survey answers Health Information Every answer from patient (ever) Counselee Counselor Create report Printer Pick up Printout Printout Authen- ticate User ID Last name & PIN Postscript

Message sequence diagram UC#1 [survey complete] CounseleeServerDatabase Log in Printer Present question Answer question Record answers Get report data Send report to printer Report

A few general comments These are just the basic diagrams. – Sufficient for our homework, exams, and probably 90% of what you’ll see after graduation – Fancier versions of these diagrams do exist It’s okay to draw diagrams by hand – As long as you respect the notation – And, at least for homework, scan it into a PDF