©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design 1.

Slides:



Advertisements
Similar presentations
Object-Oriented Design
Advertisements

Chapter 26 Legacy Systems.
Chapter 7 System Models.
Requirements Engineering Process
Object- Oriented Design
Chapter 7 – Design and Implementation
Use Case Diagrams.
Software Requirements
Software Processes.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software processes 2.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 31 Slide 1 Service-centric Software Engineering 1.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 12Slide 1 Software Design l Objectives To explain how a software design may be represented.
Chapter 7 – Object-Oriented Design
SWE Introduction to Software Engineering
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
7M701 1 Software Engineering Object-oriented Design Sommerville, Ian (2001) Software Engineering, 6 th edition: Chapter 12 )
Object-oriented Design
1 SWE Introduction to Software Engineering Lecture 23 – Architectural Design (Chapter 13)
Modified from Sommerville’s originalsSoftware Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
Chapter 14: Object-Oriented Design
Objectives To introduces the concept of software Design.
1 Objectives To introduces the concept of software Design. To introduce the concept of Object- Oriented Design (OOD). To Define various aspects about object.
Soft. Eng. II, Spr. 2002Dr Driss Kettani, from I. Sommerville1 CSC-3325: Chapter 7 Title : Object Oriented Analysis and Design Reading: I. Sommerville,
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented design 2.
©Ian Sommerville 2006Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
Component-Level Design
Teamwork Know each other Compete Leadership Strengths and Weaknesses
With a focus on OO design techniques
1 CS 456 Software Engineering. 2 Contents 3 Chapter 1: Introduction.
Object-Oriented Design Yonsei University 2 nd Semester, 2014 Woo-Cheol Kim.
CSC480 Software Engineering Lecture 11 September 30, 2002.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design Sumber dari : cc.ee.ntu.edu.tw/~farn/courses/SE/ch14.ppt.
Software Engineering, 8th edition Chapter 14 1 Courtesy: ©Ian Somerville 2006 April 13 th, 2009 Lecture # 16 Object-oriented Design.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 12Slide 1 Object-oriented Design Designing systems using self- contained objects and object.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 12Slide 1 Chapter 12 Object-Oriented Design.
1 Object-oriented Design Designing systems using self- contained objects and object classes.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 12Slide 1 Object-oriented Design Designing systems using self- contained objects and object.
 To explain how a software design may be represented as a set of interacting objects that manage their own state and operations  To describe the activities.
Lecture 1: Introduction to Software Engineering WXGE6103 Software Engineering Process and Practice Object-oriented Design.
CS.436 Software Engineering By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 10 Object-oriented Design Slide 1 1 Chapter 10 Object-oriented Design.
Object-oriented Design Designing systems using self-contained objects and object classes Designing systems using self-contained objects and object classes.
Chap 10. Object-oriented Design - Designing systems using self-contained objects and object classes -
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Assignment # 3 Due at Class 3/17 l Chapter 9: 2 and 9 l Chapter 11: 1, 4 and.
14. Object-Oriented Design Software Engineering. Objectives To explain how a software design may be represented as a set of interacting objects that manage.
12/2/2015 1www.prsolutions08.blogspot.com Object-oriented Design.
OBJECT ORIENTED AND FUNCTION ORIENTED DESIGN 1 Chapter 6.
Object-oriented Design. Recap The software architect is responsible for deriving a structural system model, a control model and a sub-system decomposition.
© 2001 Franz Kurfess Object-oriented Design 1 CPE/CSC 205: Software Engineering I Dr. Franz J. Kurfess Computer Science Department Cal Poly.
©Ian Sommerville 2000 Software Engineering. Chapter 14Slide 1 Chapter 14 Object-Oriented Design.
CMSC 345 Fall 2000 OO Design. Characteristics of OOD Objects are abstractions of real-world or system entities and manage themselves Objects are independent.
Slide 1 Chapter 10 Object-oriented Design. Slide 2 Characteristics of OOD l Objects are abstractions of real-world or system entities and manage themselves.
Object-oriented Design 3/3/20161ICS 413 – Software Engineering.
CHAPTER 6: OBJECT-ORIENTED DESIGN. Objectives  To explain how a software design may be represented as a set of interacting objects that manage their.
Chapter 7 Lecture 1 Design and Implementation. Design and implementation Software design and implementation is the stage in the software engineering process.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 10Slide 1 Chapter 5:Architectural Design l Establishing the overall structure of a software.
Chapter 14. Objectives To explain how a software design may be represented as a set of interacting objects that manage their own state and operations.
Chapter 2: Component Level Design
Design Review.
Case Study -- Weather system
Chapter 5 – Design and Implementation
Chapter 7 – Object-Oriented Design
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 12Slide 1 Chapter 12 Object-Oriented Design.
Object-oriented Design
Object- Oriented Design
With a focus on OO design techniques
Design and Implementation
Object-oriented Design
Presentation transcript:

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design 1

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 2 Objectives l To introduce an object-oriented design process for developing OO software. l To develop a case study (based on a weather monitoring system) that illustrates some of the models developed as part of an OO process. l To illustrate how an OO approach can lead to systems that can evolve in response to new requirements.

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 3 Object-oriented development l Object-oriented analysis, design and programming are related but distinct. l OOA is concerned with developing an object model of the application domain. l OOD is concerned with developing an object- oriented system model to implement requirements. l OOP is concerned with realising an OOD using an OO programming language such as Java, C++ or C#.

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 4 Characteristics of OOD l Objects are abstractions of real-world or system entities and manage themselves. l Objects are independent and encapsulate state and representation information. l System functionality is expressed in terms of object services. l Shared data areas are eliminated. Objects communicate by message passing. l Objects may be distributed and may execute sequentially or in parallel.

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 5 Object oriented modelling l An inherent part of object-oriented development is to develop UML models to represent the system. l Structural and behavioural UML models have already been introduced in previous lectures on system modelling. l Diagram types used here are from UML 1 rather than UML 2 but differences are minimal.

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 6 An object-oriented design process l Structured design processes involve developing a number of different system models. l They require a lot of effort for development and maintenance of these models and, for small systems, this may not be cost- effective. l However, for large systems developed by different groups design models are an essential communication mechanism.

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 7 Process stages l The principal activities in any OO design process include: Context: Define the context and modes of use of the system; Architecture: Design the system architecture; Objects: Identify the principal system objects; Models: Develop design models; Interfaces: Specify object interfaces.

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 8 Weather system description A weather mapping system is required to generate weather maps on a regular basis using data collected from remote, unattended weather stations and other data sources such as weather observers, balloons and satellites. Weather stations transmit their data to the area computer in response to a request from that machine. The area computer system validates the collected data and integrates it with the data from different sources. The integrated data is archived and, using data from this archive and a digitised map database a set of local weather maps is created. Maps may be printed for distribution on a special-purpose map printer or may be displayed in a number of different formats.

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 9 Context l Develop an understanding of the relationships between the software being designed and its external environment l System context A static model that describes other systems in the environment. Use a subsystem model to show other systems. Following slide shows the systems around the weather station system. l Model of system use A dynamic model that describes how the system interacts with its environment. Use use-cases to show interactions

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 10 Layered architecture

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 11 Subsystems in the weather mapping system

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 12 Use-case models l Use-case models are used to represent each interaction with the system. l A use-case model shows the system features as ellipses and the interacting entity as a stick figure.

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 13 Use-cases for the weather station

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 14 Use-case description

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 15 Architecture l Once interactions between the system and its environment have been understood, you use this information for designing the system architecture. l A layered architecture as discussed in Chapter 11 is appropriate for the weather station Interface layer for handling communications; Data collection layer for managing instruments; Instruments layer for collecting data. l There should normally be no more than 7 entities in an architectural model.

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 16 Weather station architecture

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 17 Objects l Identifying objects (or object classes) is the most difficult part of object oriented design. l There is no 'magic formula' for object identification. It relies on the skill, experience and domain knowledge of system designers. l Object identification is an iterative process. You are unlikely to get it right first time.

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 18 Approaches to identification l Use a grammatical approach based on a natural language description of the system (used in Hood OOD method). l Base the identification on tangible things in the application domain. l Use a behavioural approach and identify objects based on what participates in what behaviour. l Use a scenario-based analysis. The objects, attributes and methods in each scenario are identified.

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 19 Weather station description A weather station is a package of software controlled instruments which collects data, performs some data processing and transmits this data for further processing. The instruments include air and ground thermometers, an anemometer, a wind vane, a barometer and a rain gauge. Data is collected periodically. When a command is issued to transmit the weather data, the weather station processes and summarises the collected data. The summarised data is transmitted to the mapping computer when a request is received.

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 20 Weather station object classes l Ground thermometer, Anemometer, Barometer Application domain objects that are hardware objects related to the instruments in the system. l Weather station The basic interface of the weather station to its environment. It therefore reflects the interactions identified in the use-case model. l Weather data Encapsulates the summarised data from the instruments.

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 21 Key points l Object-oriented development involves adopting an OO approach at all stages from specification through to programming l OO design involves designing the system using objects as the fundamental abstraction and representing the system as an associated set of models in the UML l The OO design process involves several stages - discussed here were Context, Architecture and Objects.