Sequence Diagrams.

Slides:



Advertisements
Similar presentations
Andrea Maurino Web Service Design Methodology Batini, De Paoli, Maurino, Grega, Comerio WP2-WP3 Roma 24/11/2005.
Advertisements

Lecture 9 Descriptors, Events & Event Tables INFO1409 Systems Analysis & Design Module HND Year /9.
1 BTEC HNC Systems Support Castle College 2007/8 Systems Analysis Lecture 7 Descriptors Events Events Tables.
ATM User Interface Design. Requirements A bank customer is able to access his or her account using an automatic teller machine. To be able to use an ATM.
OO Process Steps  Define requirements Allocate and Derive requirements Map requirements to use cases Map requirements to classes  Define use cases Draw.
Individuals and interactions
Requirements Analysis 2 What objects collaborate to achieve the goal of a use case?
U:/msu/course/cse/103 Day 23, Slide 1 Review of Day 22 What query did you use to search for an actor by name? –Return matches.
SABAL SHRESTHA SHERIF HALAWA SHAMA KHADPEKAR JIANWEI LAI SI TRAN GROUP A Tri-Airport Shuttle System.
Get to know Access 2007 Access does data Access does data. All kinds of data. From customer contacts, billing hours and inventory to diet and exercise.
Exam examples Tor Stålhane. The A scenario – 1 We are working in a small software development company – 10 developers plus two persons in administrative.
Lecture Outline 11 The Development of Information Systems Chapter 8 page 390+
Database Tables two order-entry scenarios: A customer wants to cancel an order that she's placed. If her address is in a separate table from her.
The Project Process Inception - initial planning Elaboration - refining the design Construction - building the system Transition - installation support.
Chapter 4 User Experience Model. User experience model (Ux) Visual specification of the user interface Visual specification of the user interface Both.
Keeping inTouch Client Management System. inTouch – Keeping up with your customers Imagine this... You sit down to your desk tomorrow morning and your.
Fall CIS 764 Database Systems Engineering L21: Status Project Reviews Testing.
Glenn David Blank Computer Science & Engineering Department Lehigh University, Bethlehem, PA, USA With support from the National Science Foundation (Grants.
1 Relational Database Development Alison Taylder Consultant ITC-ILO, Turin 25 th November 2004.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Slide 1 Message Analysis Table.
SWE © Solomon Seifu ELABORATION. SWE © Solomon Seifu Lesson 10 Use Case Design.
System Initialization 1)User starts application. 2)Client loads settings. 3)Client loads contact address book. 4)Client displays contact list. 5)Client.
Faculty of Computer & Information
Planning Tool for Classes A Single Class Class name Attributes (Properties) Operations (Methods)
A Student Guide to Object- Oriented Development Chapter 10 Designing objects and classes.
G045 Lecture 08 DFD Level 1 Diagrams (Data Flow Diagrams Level 1)
Analysis Paralysis We spend so much time thinking about the problem and making sure the next step is “perfect” there is a risk that we never actually.
Essentials of OVID Using UML based notation to capture system requirements and design.
Chapters 10, 11 SSD (Revision) SD DCD Exam Object-Oriented Design.
Product V Process Planning Tool for Classes Relationship Between Layers Presentation (Use cases)Middle (Classes)Data (Entities)
Learning Objectives Today we will Learn: The different types of test data.
Use Case Diagrams A Detailed Description. Use Case Diagrams Use case diagrams describe relationships between users and use cases A use case is a (usually.
Engineering Quality Software Week02 J.N.Kotuba1 SYST Engineering Quality Software.
You will need to… Sort out your teams Know your assessment schedule Identify your personal project title Discover the core functionality Agree the shared.
Discovering Use Cases.
Chapter 11 Designing Inputs, Outputs, and Controls.
Systems Analysis and Design in a Changing World, 6th Edition
TuNGSTEN E-INVOICE SUBMISSION GUIDE.
Use Case Driven Analysis
Classes, Sequence Diagrams and Triangulation
Sequence Diagrams.
Dynamic Modeling of Banking System Case Study - II
USAJOBS – Application Manager
CIS 764 Database Systems Engineering
Review By: Reham Lotfi.
OO Domain Modeling With UML Class Diagrams and CRC Cards
Validation Bury College.
The Development of Information Systems Chapter 8 page 348+
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
Adding and editing users
Sequence Diagrams.
Portman Livewire User Guide.
Unified Modeling Language
Systems Analysis and Design in a Changing World, 6th Edition
Chapter 11 Following the Trail; Examining Execution Sequences
FTS 2 Failure Tracking System 2 Repair Process Flow
Supplier registration process, Adding Additional Users for Your Supplier Company, & Changing the s you Receive.
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
Discovering Use Cases.
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
Discovering Classes.
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
4: Object-oriented Analysis & Design
Engineering Quality Software
Chapter 6 Finding a Job.
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
Operation Contracts Ch. 11.
Chapter 8: Actor-System Interaction Modeling
Presentation transcript:

Sequence Diagrams

Analysis Paralysis “Do you want it perfect or do you want it now?”

Watch out for Red Herrings

Faulty Assumptions In the second lecture we drew up the following detailed specification… The consultant sits at their desk with a stack of business cards and flyers. They pick up a business card and start to input the details into system. The first field they enter is the name of the company. While doing this the system looks up the company name to see if it is already on the system. The next field the user enters is the name of the contact. Whilst dong this, the list of contacts for that company is displayed such that if the contact is already on the system the user may move onto another business card. At this point the user should have the opportunity to update the details on the system should they note that some aspect has change e.g. email address.

From this we drew up an initial event table… Subject Verb Object Response Consultant Inputs Card Data accepted by the system System Checks Identifying duplicates Updates New data input

Resulting in the following initial use case diagram…

There is a problem Back to that red herring If we collected business cards like stamps then yes we would be interested in recording individual cards What’s more important in our case isn’t the cards but the data they contain   We are interested in business intelligence on the companies and the people they employ This new insight means we need to re-visit all the other associated documentation!

We Need to Revise the Specification The consultant sits at their desk with a stack of business cards and flyers. They pick up a business card and start to input the details into system. The user is interested in recording details of the individual and associated company. The first field they enter is the name of the company. While doing this the system looks up the company name to see if it is already on the system. The next field the user enters is the name of the contact. Whilst dong this, the list of contacts for that company is displayed such that if the contact is already on the system the user may move onto another business card. At this point the user should have the opportunity to update the details on the system should they note that some aspect has change e.g. email address.

And the Event Table Subject Verb Object Response Consultant Inputs Company Name System produces a list of companies with that name System Finds Company Produces a list of companies with that name Lists Employees Produces a list of employees at each company Adds Company added to the system Employee Employee added to the system Updates Employee details updated Company details updated

And the Use Case Diagram

And Probably the Class Diagram

The Sequence Diagram Allows us to cross check our use cases and classes The smoke and mirrors prototype informs this process Need to think in terms of what objects support our use cases…

Triangulation Not a simple linear process Class Designs Use Cases Sequence Diagram Not a simple linear process Things we discover later shed light on what we thought we knew previously

First go at the Sequence Diagram Actors Objects Swim lines Messages

Important Questions to Ask Do we have an actor on the use case that matches the sequence diagram? Yes! Do we have a class that allows us to create the Companies object? Yes! Do we have methods in the class that are able to handle the messages? FilterByCompanyName – yes FilterByCompanyNo - no

Revise the Class Diagram

So What Data Comes Back? We may also find clues to the attributes (CompanyName / CompanyNo)

Extending the Sequence Diagram Do we have an operation to support this message?

Revise the Class Diagram

What About Validation?

Modify the Use Case Diagram

Where to Place the Validation Method? Composition and Aggregation Revisited Composition Aggregation Order Order Line Has 1 0..* Attributes Operations Customer Address Uses 1 1..* Attributes Operations

Does this Make sense? Aggregation or Composition?

This is an Aggregation This will need extending to include the parameters

The Sequence Diagram

The Use Case Diagram

The Class Diagram

Is it right? Probably not yet But we now have a mechanism to cross check one diagram with another

Exercise Start with an interface component e.g. adding a new record Plan out the interface on paper Think about what object(s) would be required to make this interface work Have a go at drawing out an initial sequence diagram Check the triangulation between your use cases and your classes What use cases / classes might be required