CS 501: Software Engineering Fall 2000 Lecture 12 Object-Oriented Design II.

Slides:



Advertisements
Similar presentations
CIS224 Software Projects: Software Engineering and Research Methods
Advertisements

Karolina Muszyńska Based on:
Analysis Modeling.
Use Case - Example University library system requirements
Use Case Diagram © copyright 2001 SNU OOPSLA Lab..
CS CS 5150 Software Engineering Lecture 15 Object Oriented Design 1.
1 CS 501 Spring 2003 CS 501: Software Engineering Lecture 18 Object Oriented Design II.
1 CS 501 Spring 2005 CS 501: Software Engineering Lecture 8 Requirements II.
1 CS 501 Spring 2005 CS 501: Software Engineering Lecture 15 Object Oriented Design 1.
Kravansvarig för PUM-projekt
CS CS 5150 Software Engineering Lecture 15 Object Oriented Design 1.
Software Engineering Lecture 9 Object-Oriented Design II.
1 CS 501 Spring 2008 CS 501: Software Engineering Lectures 15 Object Oriented Design 1.
Object-Orientated Design Unit 3: Objects and Classes Jin Sa.
CS 501: Software Engineering Fall 2000 Lecture 13 Object-Oriented Design III.
Introductory case study. 2 The problem The most difficult part of any design project is understanding the task you are attempting You have been contacted.
Software Engineering Case Study Slide 1 Introductory case study.
Use Case Diagram : Library System
Object-Oriented Analysis and Design
CIS224 Software Projects: Software Engineering and Research Methods
USE Case Model.
CS 5150 Software Engineering Lecture 15 Program Design 2.
Use Cases Why use ‘em? How do they work? UC diagrams Using them later in the software development cycle.
Requirements Elicitation. Requirement: a feature or constraint that the system must satisfy Requirements Elicitation: specification of the system that.
CS 4310: Software Engineering Lecture 3 Requirements and Design.
CS2110: SW Development Methods Design of methods (functions) Class design – CRC cards – UML class and sequence diagrams Software Design.
Object-Oriented Analysis - Instructor Notes
SOFTWARE ENGINEERING BIT-8 APRIL, 16,2008 Introduction to UML.
CS 501: Software Engineering Fall 1999 Lecture 18 (a) Project Reports (b) Object-Oriented Design III.
CS 360 Lecture 6.  A model is a simplification of reality  We build models to better understand the system being developed.  We build models of complex.
1 CMPT 275 Software Engineering Requirements Analysis Phase Requirements Analysis Activity (Identifying Objects, Scenarios) Janice Regan,
Chapter 4 – Requirements Engineering Lecture 3 1Chapter 4 Requirements engineering.
Presented by: CHAN LAI SAN ( ) REBAH DAW SARREB ( ) FIDA AL-OBAISI ( ) 08 April 2008 (Tuesday 6pm – 7:30pm)
1 Object orientation. 2 What benefits does OO give? Primarily –Encapsulation (Associates data & operations) –Types & specialisation –Software re-use.
Chapter 6 Use Cases. Use Cases: –Text stories Some “actor” using system to achieve a goal –Used to discover and record requirements –Serve as input to.
Programming in Java Unit 3. Learning outcome:  LO2:Be able to design Java solutions  LO3:Be able to implement Java solutions Assessment criteria: 
UML The Unified Modeling Language A Practical Introduction Al-Ayham Saleh Aleppo University
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.
1 CMPT 275 Software Engineering Requirements Gathering Activity Janice Regan,
 A software application is like a city  Modeling = Architecture  OOP = Civil Engineering  UML Classes = Blueprints of Buildings  UML is a common.
Jan 21, Ron McFadyen1 Ch 10. Domain Model: Visualizing Concepts Domain model illustrated with a class diagram (with no operations defined)
Lecture 3 Uses Cases Topics UML Use Cases pop quiz Readings: Chapter 3 January 24, 2008 CSCE 492 Software Engineering.
CS CS 5150 Software Engineering Lecture 15 Program Design 1.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
Requirements Engineering Methods for Requirements Engineering Lecture-30.
Object-Oriented Analysis and Design CHAPTERS 9, 31: DOMAIN MODELS 1.
Ch- 8. Class Diagrams Class diagrams are the most common diagram found in modeling object- oriented systems. Class diagrams are important not only for.
UML’s StateChart FSM, EFSM in UML Concurrent states Tool support.
2/6/03C-1 © 2001 T. Horton CS 494 Object-Oriented Analysis & Design Requirements and Use Cases.
22 August, 2007Information System Design IT60105, Autumn 2007 Information System Design IT60105 Lecture 8 Use Case Diagrams.
Lecture 14 22/10/15. The Object-Oriented Analysis and Design  Process of progressively developing representation of a system component (or object) through.
Class Diagram Mehwish Shafiq. Class Collection of object that share common properties, attributes, and behavior. Collection of objects with same data.
1 CS 501 Spring 2003 CS 501: Software Engineering Lecture 17 Object Oriented Design I.
 What to do if you want to build a new house? › Buy a bunch of wood and nails and start immediately. › Or, put some blueprints to follow, and plan of.
OO DomainModeling With UML Class Diagrams and CRC Cards Chapter 6 Princess Nourah bint Abdulrahman University College of Computer and Information Sciences.
1 CS 501 Spring 2002 CS 501: Software Engineering Lecture 17 Object Oriented Design II.
High Level Design Use Case Textual Analysis SE-2030 Dr. Mark L. Hornick 1.
1 Advanced DataBases Unified Modelling Language An Introduction and Use Case Lecture 2 Susan Curtis.
System modeling and the Unified Modeling Language (UML) CS
Chapter 4: Business Process and Functional Modeling, continued
Unified Modeling Language
OO Domain Modeling With UML Class Diagrams and CRC Cards
Data Flow Diagrams.
Start at 17th March 2012 end at 31th March 2012
CS 501: Software Engineering Fall 1999
CS 501: Software Engineering
CIS224 Software Projects: Software Engineering and Research Methods
Object-Oriented Software Engineering
Lecture 8 Object Concepts
CS 501: Software Engineering
Presentation transcript:

CS 501: Software Engineering Fall 2000 Lecture 12 Object-Oriented Design II

2 Administration Presentations Your will have three presentations this semester Everybody in the team should present at least once A case study: a new client Client satisfaction is the first requirement!

3 Requirements: the Long Term Believe that your software will be in use 5 years from now. What happens at end of semester? Packaging and hand-over Client's technical preferences (C++, Java) Some system decisions based on short-term considerations Which formats, protocols, etc. do you think will last? (IIOP, RMI, SNMP,...)

4 Requirements, Design and Implementation Remember the definitions. Example: Consistency between two players of a board game The requirement is..... The design is..... What is a requirements specification?

5 Modeling Classes Given a real-life system, how do you decide what classes to use? What terms do the users and implementers use to describe the system? They are candidates for classes. Is each candidate class crisply defined? For each class, what is its set of responsibilities? Are the responsibilities evenly balanced among the classes? What attributes and operations does each class need to carry out its responsibilities?

6 Noun Identification: A Library Example The library contains books and journals. It may have several copies of a given book. Some of the books are reserved for short-term loans only. All others may be borrowed by any library member for three weeks. Members of the library can normally borrow up to six items at a time, but members of staff may borrow up to 12 items at one time. Only members of staff may borrow journals. The system must keep track of when books and journals are borrowed and returned and enforce the rules.

7 Noun Identification: A Library Example The library contains books and journals. It may have several copies of a given book. Some of the books are reserved for short-term loans only. All others may be borrowed by any library member for three weeks. Members of the library can normally borrow up to six items at a time, but members of staff may borrow up to 12 items at one time. Only members of staff may borrow journals. The system must keep track of when books and journals are borrowed and returned and enforce the rules.

8 Candidate Classes Librarythe name of the system Book Journal Copy ShortTermLoanevent LibraryMember Weekmeasure MemberOfLibraryrepeat Itembook or journal Timeabstract term MemberOfStaff Systemgeneral term Rulegeneral term

9 Relations between Classes Bookis anItem Journalis anItem Copyis a copy of a Book LibraryMember Item MemberOfStaffis aLibraryMember Is Item needed?

10 Operations LibraryMemberborrowsCopy LibraryMemberreturnsCopy MemberOfStaffborrowsJournal MemberOfStaffreturnsJournal Item not needed yet.

11 Class Diagram MemberOfStaffBookCopyJournal is a copy of 1..* 1 LibraryMember 1 0..* on loan

12 Rough Sketch: Wholesale System A wholesale merchant supplies retail stores from stocks of goods in a warehouse. What classes would you use to model this business?

13 Rough Sketch: Wholesale System RetailStore Warehouse Order Invoice Product Shipment Merchant

14 Rough Sketch: Wholesale System Warehouse Order Invoice Product Merchant RetailStore name address contactInfo financialInfo Shipment Responsibilities -track status of shipped products Reversals damaged() return() wrongItem() responsibility (text field)

15 Expanding a Class: Modeling Financial Information RetailStore Transaction 1 * association Invoice Payment Which class is responsible for the financial records for a store?

16 Modeling Invoice Shipment Invoice invoiceNumber +goodsShipped() -sendInvoice() goodsShipped PartsList adornments + public - private RetailStore ??? invoiceRecord

17 Lessons Learned Design is empirical. There is no single correct design. During the design process: Eliding: Elements are hidden to simplify the diagram Incomplete: Elements may be missing. Inconsistency: The model may not be consistent The diagram is not the whole design. Diagrams must be backed up with specifications.

18 Levels of Abstraction The complexity of a model depends on its level of abstraction: High-levels of abstraction show the overall system. Low-levels of abstraction are needed for implementation. Two approaches: Model entire system at same level of abstraction, but present diagrams with different levels of detail. Model parts of system at different levels of abstraction.

19 Component Diagram HelloWorld.class hello.java hello.hml hello.jpg executable component

20 Actor and Use Case Diagram An actor is a user of a system in a particular role. An actor can be human or an external system. A use case is a a task that an actor needs to perform with the help of the system. Borrow book BookBorrower

21 Use Cases and Actors A scenario is an instance of a use case Actor is role, not an individual (e.g., librarian can have many roles) Actor must be a "beneficiary" of the use case (e.g., not librarian who processes book when borrowed) In UML, the system boundary is the set of use cases.

22 Use Cases for Borrowing Books Borrow copy of book BookBorrower Return copy of book Reserve book Extend loan

23 Relationships Between Use Cases: > BookBorrower Check for reservation Extend loan > Borrow copy of book

24 Relationships Between Use Cases: > Borrow copy of book BookBorrower Refuse loan >

25 Use Cases in the Development Cycle Use cases are a tool in requirements analysis Intuitive -- easy to discuss with clients Use cases are often hard to translate into class models Scenarios are useful to validate design