Docsity

Introduction to OOAD, Lecture notes of Object Oriented Analysis and Design

Partial preview of the text

Download Introduction to OOAD and more Lecture notes Object Oriented Analysis and Design in PDF only on Docsity!

Introduction to Object Oriented

Analysis and Design

Overview

Why do we need Modelling ”Blue prints”?  O bject O riented A nalysis and D esign - OOAD.  Object Oriented vs. Functional Oriented Analysis and Design.  U nified M odelling L anguage - UML.  UML Models. Steps to OOAD.

Object Oriented Analysis and Design

(OOAD)

 It’s a structured method for analyzing, designing a system by applying the object-orientated concepts, and develop a set of graphical system models during the development life cycle of the software.  (^) OOAD essential for creating well-designed, robust & maintainable software system using OO Programming Language (e.g. Java, C+ +, Python etc…).  (^) It is the latest and most used way of design now.  UML ( U nified M odeling L anguage) is a modeling language for OOS.

OOAD in the SDLC

 The software life cycle is typically divided up into stages going from abstract descriptions of the problem to designs then to code and testing and finally to deployment.

Object Oriented Analysis

 An investigation of the problem (rather than how a solution is defined).  (^) During OO analysis, there is an emphasis on finding and describing the objects (or concepts) in the problem domain.  (^) Example: Concepts in a Library Information System include; Book and Catalog.

Object Oriented Design

 (^) Emphasizes a conceptual solution that fulfills the requirements specified in the analysis.  (^) Need to define software objects and how they collaborate to fulfill the requirements.  (^) Designs are implemented in a Programming Language.  (^) Example: in the Library Information System, a Book software object may have a title attribute and a display() method. And implemented using any OO programming language; e.g. Java.

Analysis and Design Activities

More Analysis Oriented More Design Oriented Design Oriented  (^) How  (^) Logical Solution Analysis Oriented  (^) What  (^) Requirements  (^) Investigation of Domain

What is OOAD?

 (^) In essence, to consider a problem domain and logical solution from the perspective of objects (things, concepts, or entities)  (^) OOA: emphasis on finding and describing the objects in the problem domain  (^) OOD: emphasis on defining logical software objects and how they should collaborate (via method calls) to fulfill the requirements  (^) OOP: commitment to code.

Plane tailNumber public class Plane { private String tailNumber ; public List getFlightHistory () { ... } } 1 domain concept 2 visualization of domain concept 3 representation in an object - oriented programming language Fig: Object-orientation revolves around objects.

Ex. (Cont.)

Unified Modeling Language

 (^) A notational system aimed at modeling systems using object oriented concepts.  (^) A language for specifying, visualising and constructing the artifacts of software systems  (^) A de facto standard; We focus on diagrams that are used frequently: Refer to the UML 2.0 standard (2003) for the details of the language.

Steps to OOAD

Define use - 1 cases Define use - 1 cases Conceptual - 2 Model Conceptual - 2 Model Collaboration - 3 Diagrams Collaboration - 3 Diagrams Design Class - 4 Diagram Design Class - 4 Diagram

A Short Example: A Dice Game

  • (^) In this dice game: a player rolls two dice, if the total is

seven he/she wins; otherwise he/she loses.

  • (^) For this example, we will utilize Four Steps:
  • (^) 1. Defining Use Cases: 2. Defining a Domain Model 3. Defining Interaction Diagrams 4. Defining Design Class Diagrams
  1. Defining a Domain Model
  • (^) A decomposition of the problem domain involves identifying the important concepts, attributes and associations in the domain.
  • (^) The conceptual model is not a description of software components; it represents concepts in the real-world problem domain.

The Conceptual Model Fig 1.3 Partial domain model of the dice game. Player name DiceGame Die faceValue Rolls Plays Includes 2 2 1 1 1 1 Player name DiceGame Die faceValue Rolls Plays Includes 2 2 1 1 1 1