Kate Gregory Week 10 State diagrams Activity Diagrams Summary and Conclusion / The Future Critique discussion Lab 4 is marked.

Slides:



Advertisements
Similar presentations
Object-Oriented Analysis and Design CHAPTERS 15: UML INTERACTION DIAGRAMS 1.
Advertisements

Visual Basic: An Object Oriented Approach 2 – Designing Software Systems.
Systems Analysis and Design 8th Edition
Chapter 22 Object-Oriented Systems Analysis and Design and UML Systems Analysis and Design Kendall and Kendall Fifth Edition.
Week 2 Concepts normally in week 1 Software Development Life Cycle Use Cases Lab project Lab 1 Kate Gregory.
Kate Gregory1 Week 3 Lab 1 due now Finding Classes in your System CRC Cards Collaboration Diagrams Lab 2.
2-1 © Prentice Hall, 2007 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
Revision Session 1.UML Overview 2.Detailed software design : operation specification, designing for re-use.
© 2005 Prentice Hall8-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
Lecturer: Dr. AJ Bieszczad Chapter 66-1 Object-Oriented analysis and design Special nature of OO development Use cases Design with UML OO system design.
1 UML Component and Deployment Diagrams. Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario.
Requirements Analysis 2 What objects collaborate to achieve the goal of a use case?
Systems Analysis & Design Sixth Edition Systems Analysis & Design Sixth Edition Toolkit Part 5.
Slide 1 Chapter 8 Behavioral Modeling. Slide 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports.
The Unified Modeling Language (UML) Class Diagrams.
Relationships. In the Interaction diagrams, we began to look at how classes communicate with one another. Now, we'll focus on the relationships between.
Structural Modeling: Class Diagrams Copyright © 2009 John Wiley & Sons, Inc. Copyright © 2005 Pearson Education Copyright © 2009 Kannan Mohan CIS 4800.
Systems Analysis and Design in a Changing World, Fifth Edition
E-Learning Material Web Application Design 2. Web Application Design Use cases Guidelines Exceptions Interaction Sequence diagrams Finding objects.
Object-Oriented Design
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 20 Object-Oriented.
Unified Modeling Language, Version 2.0
Scis.regis.edu ● CS-432: Modern Software Engineering Week 2 Dr. Jesús Borrego Lead Faculty, COS Regis University 1.
Copyright 2002 Prentice-Hall, Inc. Chapter 2 Object-Oriented Analysis and Design Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey.
CSC 395 – Software Engineering Lecture 13: Object-Oriented Analysis –or– Let the Pain Begin (At Least I’m Honest!)
Lab 04.
Real Time Systems Modeling Structure in UML (Part I)
Systems Analysis & Design 7 th Edition Chapter 5.
Systems Analysis and Design 8 th Edition Chapter 6 Object Modeling.
Kate Gregory1 Week 4 Lab 2 due now Why document? Unified Modeling Language Class diagrams.
© 2005 Prentice Hall9-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
An Introduction to the Unified Modeling Language
Lecture 6: Structural Modeling
1 CS Tutorial 5 Frid. Oct 23, 2009 Design Document Tutorial.
Week 9 Lab 4 due now Design Patterns Good Design Modules and Packages –Deployment diagram –Component diagram SOLID Principles Metrics Lab 5 available –
Kate Gregory Week 8 Midterm discussion Interaction / Sequence Diagrams Design Patterns RAII Lab 4.
CIS 112 Exam Review. Exam Content 100 questions valued at 1 point each 100 questions valued at 1 point each 100 points total 100 points total 10 each.
Kate Gregory Week 6 Lab 3 due now –Rating your group Inheritance Multiple Inheritance Polymorphism Midterm Review.
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
Kate Gregory Week 5 Static Object Model –Attributes –Methods –Associations –Visibility Lab 3 available –Rating your group.
Software Engineering Zhang Shuang
Slide 1 Classes and Objects. Slide 2 Messages and Methods.
1 LAB What is Collaboration diagram? 4 Collaboration diagrams illustrate the interaction between the objects, using static spatial structure. 4.
1 Unified Modeling Language, Version 2.0 Chapter 2.
Session 3 How to Approach the UML Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 5, 2011 Presented by Kang-Pyo Lee.
Object-Oriented Analysis and Design Use cases Finding classes Collaboration and Sequence diagrams Associations between classes.
Monday, Jan 27, 2003Kate Gregory with material from Deitel and Deitel Week 4 Questions from Last Week Hand in Lab 2 Classes.
Collaboration diagrams. Deployment diagrams. Lesson 4.
Basic Characteristics of Object-Oriented Systems
CSCE 240 – Intro to Software Engineering Lecture 3.
11 Systems Analysis and Design in a Changing World, Fifth Edition.
Slide 1 Unified Modeling Language, Version 2.0 Object-Oriented SAD.
Elaboration popo.
Roberta Roth, Alan Dennis, and Barbara Haley Wixom
The Movement To Objects
Main issues: • What do we want to build • How do we write this down
Object-Oriented Analysis and Design
Object-oriented software testing
Systems Analysis and Design With UML 2
Unified Modeling Language (UML)
Business System Development
Dynamic Modeling: Defining Classes
ניתוח מערכות מידע א' הרצאה 3
CIS 375 Bruce R. Maxim UM-Dearborn
Week 5.
Sample Test Questions Please identify the use cases of the system that cover all the behaviors described in the system specification. Please identify.
CIS 375 Bruce R. Maxim UM-Dearborn
Week 5.
UML  UML stands for Unified Modeling Language. It is a standard which is mainly used for creating object- oriented, meaningful documentation models for.
Object Oriented System Design Responsibilities
Presentation transcript:

Kate Gregory Week 10 State diagrams Activity Diagrams Summary and Conclusion / The Future Critique discussion Lab 4 is marked

DateWeekTopicHand OutDue BackTest 6-Sep-131Administrivia / Overview / Motivation, benefits of OO 13-Sep-132Use CasesLab 1: Use cases 20-Sep-133CRC Cards, collab graphsLab 2: CRC cardslab 1 5% 27-Sep-13 4start class diaglab 2 5% 4-Oct-135Finish class diag, AssociationsLab 3: Class Diag 11-Oct-136Inh & Polymorphism / midterm reviewlab 3 5% 18-Oct-137midtermMidterm 25% 25-Oct-13Reading Break 1-Nov-138Interaction diag / Design PatternsLab 4: Interaction Diag 8-Nov-139Good Design / Modules & Packages / Deployment and component diagrams /Metrics / SOLID Lab 5: Critiqueslab 4 5% 15-Nov-1310State diagrams / Activity diagrams / Summary and Conclusion / The Future 22-Nov-1311Critiquescritique lab (before class) 15% 29-Nov-1312Critiques 11-Dec-13 Final Exam, 9am - noon, AB 108 GYMFinal 40%

Kate Gregory Remaining UML Diagrams State diagram Activity diagram

Kate Gregory States of an Object Objects do not always react the same way to the same message (method call) –Withdraw $100: will it succeed? Always? It depends what state it is in: overdrawn, on hold, normal, … Some objects have states worth studying

Kate Gregory State Diagram Bank Account:

When to draw a State Diagram Not always and not for every object If you have rules that depend on the state –Shipping fees can’t be calculated until order is approved –Accounts can’t be closed if there are outstanding service charges If you have “side effects” of state transitions –Eg alerts Can be a compact and powerful way to direct a programmer One of the few diagrams I update throughout the life of a project

How do you do it? Identify a class that has interesting states Give the states names –Usually adjectives –Pending/approved/archived/completed Look at the existing methods to see which ones change the state Look at the existing methods to see which ones depend on the state Kate Gregory

Notes become diagram In what state is the object created? In that state, what methods can be called? –And do they change the state or keep it the same? Does it depend on some other value? –Are there side effects (eg send ?) Continue until all the states are drawn From what states can the object be destroyed?

Lab 5 Should you add a state diagram? What class or classes have interesting states? What rules can you convey efficiently using a state diagram? Re read the use cases Kate Gregory

Activity Diagram Describes a sequence of activities (often a use case) Illustrates the business process Helpful when there are a lot of diversions and a lot of way to reach the same final situation Clarifies order (as a sequence diagram does) but is not concerned with what objects and methods get the job done

Kate Gregory Morning Activity Diagram

Lab 5 Should you add an activity diagram? Re read the use cases – are there parallel activities? Is it necessary to co-ordinate activities at all? Kate Gregory

Where have we been? Requirements –Use cases –Use case diagrams Finding objects and their insides –Candidate class lists –CRC cards –Collaboration diagrams –Encapsulation, good and bad

Kate Gregory Where have we been? Class diagram –Classes –Attributes Object is not attribute Objects have identity –Methods Parameters and types –Relationships Association Aggregation Composition Inheritance –polymorphism

Kate Gregory Where have we been? Sequence / Interaction diagrams Design patterns Metrics SOLID principles, RAII Modules and packages Deployment and component diagrams State diagrams Activity diagrams

Kate Gregory Next Week Make sure you are signed up for a slot Critiques start at 9 am – please be here! –No written submissions accepted after first presentation starts Enter QUIETLY and respectfully Come at start of class no matter when your presentation is, and stay for the whole thing