Refining the Requirements Model

Slides:



Advertisements
Similar presentations
© 2010 Bennett, McRobb and Farmer1 Requirements Analysis 1: Requirements and Classes Based on Chapter 7 of Bennett, McRobb and Farmer: Object Oriented.
Advertisements

Systems Analysis and Design 8th 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.
03/12/2001 © Bennett, McRobb and Farmer Class Design Based on Chapter 14 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis and Design.
03/12/2001 © Bennett, McRobb and Farmer 2002 Refining the Requirements Model Based on Chapter 8 of Bennett, McRobb and Farmer: Object Oriented Systems.
COMP1007 Intro to Requirements Analysis © Copyright De Montfort University 2002 All Rights Reserved COMP1007 Intro to Requirements Analysis Object Oriented.
Refining the Structure of the Requirements Model Aim: To create the conditions for software re-use. Bennett, McRobb and Farmer ch 8.
Requirements Analysis 15.1 Specialised Associations b515.ppt © Copyright De Montfort University 2000 All Rights Reserved INFO2005 Requirements Analysis.
03/12/2001 © Bennett, McRobb and Farmer Modelling Concepts Based on Chapter 5 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis and.
Requirements Analysis 9. 1 OO Concepts b509.ppt © Copyright De Montfort University 2000 All Rights Reserved INFO2005 Requirements Analysis Object.
Requirements Analysis
03/12/2001 © Bennett, McRobb and Farmer Activity Diagrams Based on Chapter 5 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis and.
© Copyright Eliyahu Brutman Programming Techniques Course.
03/12/2001 © Bennett, McRobb and Farmer What Is Object-Orientation? Based on Chapter 4 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis.
Chapter 8 Object Design Reuse and Patterns. Finding Objects The hardest problems in object-oriented system development are: –Identifying objects –Decomposing.
03/12/2001 © Bennett, McRobb and Farmer Use Case Diagrams Based on Chapter 6 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis and.
Design Patterns Ref : Chapter 15 Bennett et al. useful groups of collaborating classes that provide a solution to commonly occuring problems. provide.
1 © Bennett, McRobb and Farmer 2002, and De Montfort University 2002 Systems Development Methodologies Based on Chapter 22 of Bennett, McRobb and Farmer:
Refining the Requirements Model
University of Toronto at Scarborough © Bennett, McRobb and Farmer 2005 CSCC40 classes 1 Use CasesUse Case Model Campaign Management PackageModelSub-system.
Software Development Processes
WXGC6102: Object-Oriented Techniques Refining the Requirements Model References: Chapter 7 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis.
What Is Object-Orientation?
1 WXGC6102: Object-Oriented Techniques Modelling Concepts References: Chapter 5 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis and Design.
1 Object orientation. 2 What benefits does OO give? Primarily –Encapsulation (Associates data & operations) –Types & specialisation –Software re-use.
Creational Patterns CSE301 University of Sunderland Harry R Erwin, PhD.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 - Domain Classes.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 Domain Classes.
CS3773 Software Engineering Lecture 04 UML Class Diagram.
Systems Analysis & Design 7 th Edition Chapter 5.
© Bennett, McRobb and Farmer Requirements Analysis Based on Chapter 7 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis and Design.
03/12/2001 © Bennett, McRobb and Farmer 2005 Refining the Requirements Model Based on Chapter 8 of Bennett, McRobb and Farmer: Object Oriented Systems.
03/12/2001 © Bennett, McRobb and Farmer 2002 Refining the Requirements Model Based on Chapter 8 of Bennett, McRobb and Farmer: Object Oriented Systems.
© 2010 Bennett, McRobb and Farmer1 Development Process Based on Chapter 5 Bennett, McRobb and Farmer Object Oriented Systems Analysis and Design Using.
© 2010 Bennett, McRobb and Farmer1 Requirements Analysis 2: Realizing Use Cases Based on Chapter 7 of Bennett, McRobb and Farmer: Object Oriented Systems.
OBJECT ORIENTED AND FUNCTION ORIENTED DESIGN 1 Chapter 6.
03/12/2001 © Bennett, McRobb and Farmer Modelling Concepts Based on Chapter 5 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis and.
Domain Classes – Part 1.  Analyze Requirements as per Use Case Model  Domain Model (Conceptual Class Diagram)  Interaction (Sequence) Diagrams  System.
IM 2042 – Information Systems Modeling and Design Topic 4 – Refining the Requirements Model. Design Patterns Based on chapters 8 and 15 of Bennett, McRobb.
Banaras Hindu University. A Course on Software Reuse by Design Patterns and Frameworks.
DOMAIN CLASSES – PART 1 BTS430 Systems Analysis and Design using UML.
Engineering, 7th edition. Chapter 8 Slide 1 System models.
Development Process Based on Chapter 5 Bennett, McRobb and Farmer
GRASP – Designing Objects with Responsibilities
Design Patterns: MORE Examples
CompSci 280 S Introduction to Software Development
Object-Oriented Modeling
DATA REQIREMENT ANALYSIS
OBJECT ORIENTED CONCEPT
Chapter 5:Design Patterns
Object-Oriented Modeling with UML
Modelling Concepts Based on Chapter 5 Bennett, McRobb and Farmer
Abstract descriptions of systems whose requirements are being analysed
Software Architecture & Design Pattern
Chapter 16 – Software Reuse
CSE 303 – Software Design and Architecture
Domain Class Diagram Chapter 4 Part 2 pp
CBSE 2014 Modeling Components with UML
Patterns.
Chapter 20 Object-Oriented Analysis and Design
SYS466 Domain Classes – Part 1.
Systems Analysis – ITEC 3155 Modeling System Requirements – Part 2
What Is Object-Orientation?
Systems Analysis and Design I
Systems Analysis and Design I
Object Oriented Analysis and Design
Chapter 5.
Presentation transcript:

Refining the Requirements Model Based on Chapter 8 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis and Design Using UML, (4th Edition), McGraw Hill, 2010. © 2010 Bennett, McRobb and Farmer

In This Lecture You Will Learn: About reuse in software development; How OO contributes to reuse; How to identify and model aggregation, composition and generalization; An approach to modelling components; About ‘patterns’ in software development; How analysis patterns help to structure a model. © 2010 Bennett, McRobb and Farmer

Reuse in Software Development Software development has concentrated on inventing new solutions Recently, the emphasis has shifted Much software is now assembled from components that already exist Component reuse can save money, time and effort © 2010 Bennett, McRobb and Farmer

Reuse in Software Development Achieving reuse is still hard Reuse is not always appropriate – can’t assume an existing component meets a new need Poor model organisation makes it hard to identify suitable components The NIH (Not-Invented-Here) syndrome Requirements and designs are more difficult to reuse than code © 2010 Bennett, McRobb and Farmer

Reuse: The Contribution of OO Generalization allows the creation of new specialised classes when needed Encapsulation makes components easier to use in systems for which they were not originally designed Aggregation and composition can be used to encapsulate components Object-oriented software development relies on two main forms of abstraction that help to achieve reuse: first, generalization and second, encapsulation combined with informa- tion hiding. Not surprisingly, their use resembles the practice in many other industries. © 2010 Bennett, McRobb and Farmer

Adding Generalization Structure Add generalization structures when: Two classes are similar in most details, but differ in some respects May differ: In behaviour (operations or methods) In data (attributes) In associations with other classes © 2010 Bennett, McRobb and Farmer

© 2010 Bennett, McRobb and Farmer Adding Structure Two types of staff: Have qualifications recorded Can be client contact for campaign Bonus based on campaigns they have worked on Creative Admin Qualifications are not recorded Not associated with campaigns Bonus not based on campaign profits © 2010 Bennett, McRobb and Farmer

Adding Structure: 0..* 1..* allocated Superclass associations are inherited by subclasses calculateBonus () StaffMember {abstract} staffName staffNo staffStartDate calculate Bonus () assignNewStaffGrade () getStaffDetails () CreativeStaff qualification assignStaffContact () Grade gradeName AdminStaff A superclass Two subclasses with redefined operation © 2010 Bennett, McRobb and Farmer

Aggregation and Composition Special types of association, both sometimes called whole-part A campaign is made up of adverts: Campaign Advert 0..* 1 Unfilled diamond signifies aggregation © 2010 Bennett, McRobb and Farmer

© 2010 Bennett, McRobb and Farmer Aggregation and Composition Aggregation is essentially any whole-part relationship Semantics can be very imprecise Composition is ‘stronger’: Each part may belong to only one whole at a time When the whole is destroyed, so are all its parts © 2010 Bennett, McRobb and Farmer

Aggregation and Composition An everyday example: Clearly not composition: Students could be in several classes If class is cancelled, students are not destroyed! Class Student 0..* 1..* © 2010 Bennett, McRobb and Farmer

Aggregation and Composition Another everyday example: Meal Ingredient 1..* 1 Filled diamond signifies composition This is (probably) composition: Ingredient is in only one meal at a time If you drop your dinner on the floor, you probably lose the ingredients too © 2010 Bennett, McRobb and Farmer

Modelling Components in UML Standard UML techniques can be used to model components Component internals can be detailed in a class diagram Component interaction can be shown in a communication diagram © 2010 Bennett, McRobb and Farmer

Modelling Components in UML UML has icons for modelling components in structure diagrams (e.g. class diagrams) « component » Payments TakePayment Bookings Provided interface offers services Required interface uses services Ball-and-socket connector maps provided interface of one component to required interface of another © 2010 Bennett, McRobb and Farmer

Modelling Components in UML Structure diagrams can mix component icons with other icons, e.g. interfaces «interface» AllocateSeats «component» «realize» Flight Management getFreeSeats(seatType) allocateSeat(seatRef) deallocateSeat(seatRef) © 2010 Bennett, McRobb and Farmer

Software Development Patterns A pattern: “describes a problem which occurs over and over again in our environment, and then describes the core of a solution to that problem, in such a way that you can use this solution a million times over, without ever doing it the same way twice.” Alexander et al. (1977) © 2010 Bennett, McRobb and Farmer

Software Development Patterns A pattern has: A context = a set of circumstances or preconditions for the problem to occur Forces = the issues that must be addressed A software configuration that resolves the forces © 2010 Bennett, McRobb and Farmer

Software Development Patterns Patterns are found at many points in the systems development lifecycle: Analysis patterns are groups of concepts useful in modelling requirements Architectural patterns describe the structure of major components of a software system Design patterns describe the structure and interaction of smaller software components © 2010 Bennett, McRobb and Farmer

Software Development Patterns Patterns have been applied widely in software development: Organisation patterns describe structures, roles and interactions in the software development organisation itself Antipatterns document bad practice Mushroom Management is an organisation anti-pattern © 2010 Bennett, McRobb and Farmer

Simplest Analysis Pattern Transaction transactionNumber transactionDate transactionTotal updateTransactionTotal ( ) TransactionLineItem transactionLineNumber transactionLineQuantity transactionLineValue comprises * 1 © 2010 Bennett, McRobb and Farmer

Accountability Analysis Pattern AccountabilityType 1 commissioner Person 1 * * Accountability Party 1 * 1 Organization responsible * Time Period © 2010 Bennett, McRobb and Farmer

© 2010 Bennett, McRobb and Farmer Summary In this lecture you have learned about: How to identify and model aggregation, composition and generalization Reusable components, and how to model them in structure diagrams What is meant by ‘pattern’, and how patterns are used in software development © 2010 Bennett, McRobb and Farmer

© 2010 Bennett, McRobb and Farmer References Bennett, McRobb and Farmer (2010) Cheesman and Daniels (2001) (For full bibliographic details, see Bennett, McRobb and Farmer) © 2010 Bennett, McRobb and Farmer