尊敬的 微信汇率:1円 ≈ 0.046166 元 支付宝汇率:1円 ≈ 0.046257元 [退出登录]
SlideShare a Scribd company logo
Object Oriented Analysis with
           UML
 Organized By: Vinay Arora
               Assistant Professor, CSED, Thapar University
                www.slideshare.net/aroravinay
Disclaimer


         This is NOT A COPYRIGHT               MATERIAL


       Content has been taken mainly from the following books:
System Analysis and Design Methods By Jeffrey L Whitten & Lonnie D Bentley ,
          Analysis & Design of Information Systems By James A. Senn,
                 System Analysis & Design By Elias M. Awad,
Modern System Analysis & Design By Jeffrey A. Hoffer, Joey F.George & Joseph
                                   S. Valacich
Object Oriented Analysis

   Object-Oriented Analysis (OOA) – An Approach used to
   1.  Study existing objects to see if they can be reused or adapted for
       new uses
   2.  Define new or modified objects that will be combined with
       existing objects into a useful business computing application



   Object Modeling –

   A Technique for Identifying objects within the systems environment
   and the relationships between those objects.
UML

  UNIFIED MODELING LANGUAGE (UML) – A Set of modeling
  conventions that is used to specify or describe a software system in
  terms of objects.

      The UML does not prescribe a method for developing systems.

      Only a notation that is now widely accepted as a standard for object
      modeling.
Object & Attribute

   Object – something that is or is capable of being seen, touched, or otherwise
   sensed, and about which users store data and associate behavior.

       Person, place, thing, or event
       Employee, customer, instructor, student
       Warehouse, office, building, room
       Product, vehicle, computer, videotape

   Attribute – the data that represent characteristics of interest about an object.


   Object Instance – each specific person, place, thing, or event, as well as the
   values for the attributes of that object.
CLASS

  Behavior – the set of things that the object can do that correspond to functions
  that act on the object’s data (or attributes).

      In object-oriented circles, an object’s behavior is commonly referred to as a
      method, operation, or service.

  Encapsulation – the packaging of several items together into one unit.

  CLASS – A Set of Objects that share common attributes and behavior.
  Sometimes referred to as an object class.
Class Example
Inheritance : –

The Concept wherein methods and/or attributes defined in an object class can be
inherited or reused by another object class.
Generalization/Specialization

   Generalization/Specialization:-
   A Technique wherein the attributes and behaviors that are common to several
   types of object classes are grouped (or abstracted) into their own class, called a
   supertype. The attributes and methods of the supertype object class are then
   inherited by those object classes.
   Supertype:-

   An Entity that contains attributes and behaviors that are common to one or more
   class subtypes.
   Subtype:-
   An Object Class that Inherits attributes and behaviors from a supertype class and
   then may contain other attributes and behaviors that are unique to it.
Generalization/Specialization
UML Representation of Generalization/Specialization
Object/Class Relationship

   Object/Class Relationship – A Natural business association that exists between
   one or more Objects and Classes.
Multiplicity and UML Multiplicity Notations




   Multiplicity – The Minimum and Maximum
   number of occurrences of one Object/Class for a
   single occurrence of the related Object/Class.
Aggregation

   Aggregation – A Relationship in which one larger “whole” class contains one or
   more smaller “parts” classes. Conversely, a smaller “part” class is part of a
   “whole” larger class.
Messages

  Message – Communication that occurs when one object invokes another
  object’s method (behavior) to request information or some action.
Polymorphism

  Polymorphism – literally meaning “many forms,” the concept that different
  objects can respond to the same message in different ways.
UML Diagrams
  Use-Case Model Diagrams

  Static Structure Diagrams
       Class diagrams
       Object diagrams

  Interaction Diagrams
       Sequence diagrams
       Collaboration diagrams

  State Diagrams
       State chart diagrams
       Activity diagrams

  Implementation Diagrams
      Component diagrams
      Deployment diagrams
UML Diagrams
UML Diagrams Grouping
Process of Object Modeling

 •   Modeling the functions of the system.

 •   Finding and identifying the business objects.

 •   Organizing the objects and identifying their relationships.
System Use Case
        The following steps evolve the requirements Use-case model into an Analysis
        Use-case model:

   1.       Identify, define, and document new actors.

   2.       Identify, define, and document new use cases.

   3.       Identify any reuse possibilities.

   4.       Refine the use-case model diagram (if necessary).

   5.       Document system analysis use-case narratives.
System Use Case (contd.)
System Analysis Use Case

   A Use Case that Documents the Interaction between the System User and the
   System.

   It is highly detailed in describing What Is Required but is free from most
   implementation details and constraints.

   Use Case Diagram TYPES –

         - Abstract Use Case

         - Extension Use Case
Abstract Use-Case Narrative
Activity Diagram

   A Diagram that can be used to graphically depict the flow of a business process,
   the steps of a use case, or the logic of an object behavior (method).

       One or more activity diagram can be constructed for each use case (more
       than one if use case is long or contains complex logic).

       Solid dot represents the start of the process.

       A rounded-corner rectangle represents an activity or        Create Backorder
       task that needs to be performed.

       Arrows depict triggers that initiate activities.

       A solid black bar is a synchronization bar that allows you to depict activities
       that occur in parallel.
Guidelines for Constructing Activity Diagram

    Start with the one Initial node as a Starting point.

    Add partitions if they are relevant to your Analysis.

    Add an Action for each major Step of the use case.

    Add flows from each action to another action, a decision point or an end point.

    Add decisions where flows diverge with alternating routes.

    Add Forks and Joins where activities are performed in PARALLEL.

    End with a single notation for activity FINAL.
An Example of Activity Diagram
                                 Example:- Activity Diagram
Activity Diagram with Partitioning
Sequence Diagram
  A diagram that depicts the interaction between an Actor and the System for a use
  case scenario.

  A Sequence diagram depicts how objects interact with each other via messages
  in the execution of a use case or operation.

  Components of A System Sequence Diagram:-
      Actor
      System
      Lifelines
      Activation Bars
      Input Messages
      Output Message
      Receiver Actor
      Frame
e
           uenc
      m Seq
S yste iagram
      D
Sequence Diagram for Login Validation
Finding Potential Objects

 1.   Find the Potential Objects


          Review each use case to Find    Nouns that correspond to business entities or
          events.

 2.   Select the Proposed Objects

          NOT ALL NOUNS represent business objects.
          Ask:
              Is the candidate a synonym of another object?
              Is the candidate outside the scope of the system?
              Is the candidate a role without unique behavior, or is it an external role?
              Is the candidate unclear or in need of focus?
              Is the candidate an action or an attribute that describes another object?
Partial Use-Case Narrative with Nouns
             Highlighted
    DESCRIPTION:     This use case describes the event of a member submitting a new order for SoundStage
                     products via the world wide web. The member selects the items they wish to purchase.
                     Once they have completed their shopping, the member’s demographic information as
                     well as their account standing will be validated. Once the products are verified as being
                     in stock, a packing order is sent to the distribution center for them to prepare the
                     shipment. For any product not in stock, a back order is created. On completion, the
                     member will be sent an order confirmation.
    PRE-CONDITION:   The individual submitting the order must be an active club member.
                     The member must login in to the system (provide identification) to enter an order.
    TRIGGER:         This use case is initiated when the member selects the option to enter a new order.
    TYPICAL COURSE   Actor Action                            System Response
    OF EVENTS:       Step 1: The member requests the         Step 2: The system responds by displaying the
                     option to enter a new order.            catalogue of the SoundStage products.
                     Step 3: The Member browses the          Step 4: Once the member has completed their
                     available items and selects the ones    selections the system retrieves from file and
                     they wish to purchase along with the    presents the member’s demographic information
                     quantity.                               (shipping and billing addresses).
                     Step 5: The member verifies             Step 6: For each product ordered, the system
                     demographic information (shipping       verifies the product availability and determines
                     and billing addresses). If no changes   an expected ship date, determines the price to be
                     are necessary they respond              charged to the member, and determines the cost
                     accordingly (to continue).              of the total order. If an item is not immediately
                                                             available it indicates that the product is
                                                             backordered or that it has not been released for
                                                             shipping (for pre-orders). If an item is no longer
                                                             available that is indicated also. The system then
                                                             displays a summary of the order to the member
                                                             for verification.
                     Step 7: The member verifies the         Step 8: The system checks the status of the
                     order. If no changes are necessary      member’s account. If satisfactory, the system
                     they respond accordingly (to            prompts the member to select the desired
                     continue).                              payment option (to be billed later or pay
                                                             immediately with a credit card).
US
   IO TS
 AR EC
V BJ
 O
TED
            EC
        SEL S
      LY E CT
   NAL OBJ
FI
Selecting Objects

   Is the candidate a synonym of another object?

   Is the candidate outside the scope of the system?

   Is the candidate a role without unique behavior, or is it an external role?

   Is the candidate unclear or in need of focus?

   Is the candidate an action or an attribute that describes another object?
Finding Proposed Objects
Organizing the Objects and Identifying their
               Relationships
 1.   Identifying Associations and Multiplicity



 2.   Identifying Generalization/Specialization Relationships



 3.   Identifying Aggregation Relationships



 4.   Prepare the Class Diagram
Class Diagram




   Class Diagram – A Graphical depiction of a system’s Static Object
   Structure, showing object classes that the system is composed of as well
   as the relationships between those object classes.
Object Association Matrix
Generalization/Specialization
Class Diagram
Reference List

1. System Analysis and Design Methods By Jeffrey L Whitten & Lonnie D Bentley

2. Analysis & Design of Information Systems By James A. Senn

3. System Analysis & Design By Elias M. Awad

4. Modern System Analysis & Design By Jeffrey A. Hoffer, Joey F.George & Joseph S. Valacich

                                     etc…….
Thnx…

More Related Content

What's hot

OO Development 5 - Analysis
OO Development 5 - AnalysisOO Development 5 - Analysis
OO Development 5 - Analysis
Randy Connolly
 
Pawan111
Pawan111Pawan111
Pawan111
ranjeetdon
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
Sudarsun Santhiappan
 
Ooad 2marks
Ooad 2marksOoad 2marks
Ooad 2marks
Ash Wini
 
Jeet ooad unit-2
Jeet ooad unit-2Jeet ooad unit-2
Jeet ooad unit-2
Jitendra s Rathore
 
Design Pattern Notes: Nagpur University
Design Pattern Notes: Nagpur UniversityDesign Pattern Notes: Nagpur University
Design Pattern Notes: Nagpur University
Shubham Narkhede
 
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPTCS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
leela rani
 
Object oriented and function oriented design
Object oriented and function oriented designObject oriented and function oriented design
Object oriented and function oriented design
Naveen Sagayaselvaraj
 
CS8592 Object Oriented Analysis & Design - UNIT IV
CS8592 Object Oriented Analysis & Design - UNIT IV CS8592 Object Oriented Analysis & Design - UNIT IV
CS8592 Object Oriented Analysis & Design - UNIT IV
pkaviya
 
CS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT ICS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT I
pkaviya
 
CS8592 Object Oriented Analysis & Design - UNIT III
CS8592 Object Oriented Analysis & Design - UNIT III CS8592 Object Oriented Analysis & Design - UNIT III
CS8592 Object Oriented Analysis & Design - UNIT III
pkaviya
 
Object Oriented Analysis (Coad-Yourdon)
Object Oriented Analysis (Coad-Yourdon)Object Oriented Analysis (Coad-Yourdon)
Object Oriented Analysis (Coad-Yourdon)
Subash Khatiwada
 
Object Oriented Design in Software Engineering SE12
Object Oriented Design in Software Engineering SE12Object Oriented Design in Software Engineering SE12
Object Oriented Design in Software Engineering SE12
koolkampus
 
Cs 2352 object oriented analysis and design
Cs 2352 object oriented analysis and designCs 2352 object oriented analysis and design
Cs 2352 object oriented analysis and design
andrewsasi
 
Object Oriented Analysis and Design with UML2 part1
Object Oriented Analysis and Design with UML2 part1Object Oriented Analysis and Design with UML2 part1
Object Oriented Analysis and Design with UML2 part1
Haitham Raik
 
Object model
Object modelObject model
Object model
Hoang Nguyen
 
Introduction to OOAD
Introduction to OOADIntroduction to OOAD
Introduction to OOAD
Saraswati Saud
 
CS8592 Object Oriented Analysis & Design - UNIT II
CS8592 Object Oriented Analysis & Design - UNIT IICS8592 Object Oriented Analysis & Design - UNIT II
CS8592 Object Oriented Analysis & Design - UNIT II
pkaviya
 
Ooad unit 1
Ooad unit 1Ooad unit 1
Ooad unit 1
raj kumar
 

What's hot (19)

OO Development 5 - Analysis
OO Development 5 - AnalysisOO Development 5 - Analysis
OO Development 5 - Analysis
 
Pawan111
Pawan111Pawan111
Pawan111
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
 
Ooad 2marks
Ooad 2marksOoad 2marks
Ooad 2marks
 
Jeet ooad unit-2
Jeet ooad unit-2Jeet ooad unit-2
Jeet ooad unit-2
 
Design Pattern Notes: Nagpur University
Design Pattern Notes: Nagpur UniversityDesign Pattern Notes: Nagpur University
Design Pattern Notes: Nagpur University
 
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPTCS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
 
Object oriented and function oriented design
Object oriented and function oriented designObject oriented and function oriented design
Object oriented and function oriented design
 
CS8592 Object Oriented Analysis & Design - UNIT IV
CS8592 Object Oriented Analysis & Design - UNIT IV CS8592 Object Oriented Analysis & Design - UNIT IV
CS8592 Object Oriented Analysis & Design - UNIT IV
 
CS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT ICS8592 Object Oriented Analysis & Design - UNIT I
CS8592 Object Oriented Analysis & Design - UNIT I
 
CS8592 Object Oriented Analysis & Design - UNIT III
CS8592 Object Oriented Analysis & Design - UNIT III CS8592 Object Oriented Analysis & Design - UNIT III
CS8592 Object Oriented Analysis & Design - UNIT III
 
Object Oriented Analysis (Coad-Yourdon)
Object Oriented Analysis (Coad-Yourdon)Object Oriented Analysis (Coad-Yourdon)
Object Oriented Analysis (Coad-Yourdon)
 
Object Oriented Design in Software Engineering SE12
Object Oriented Design in Software Engineering SE12Object Oriented Design in Software Engineering SE12
Object Oriented Design in Software Engineering SE12
 
Cs 2352 object oriented analysis and design
Cs 2352 object oriented analysis and designCs 2352 object oriented analysis and design
Cs 2352 object oriented analysis and design
 
Object Oriented Analysis and Design with UML2 part1
Object Oriented Analysis and Design with UML2 part1Object Oriented Analysis and Design with UML2 part1
Object Oriented Analysis and Design with UML2 part1
 
Object model
Object modelObject model
Object model
 
Introduction to OOAD
Introduction to OOADIntroduction to OOAD
Introduction to OOAD
 
CS8592 Object Oriented Analysis & Design - UNIT II
CS8592 Object Oriented Analysis & Design - UNIT IICS8592 Object Oriented Analysis & Design - UNIT II
CS8592 Object Oriented Analysis & Design - UNIT II
 
Ooad unit 1
Ooad unit 1Ooad unit 1
Ooad unit 1
 

Similar to A&D - Object Oriented Analysis using UML

Object oriented software engineering
Object oriented software engineeringObject oriented software engineering
Object oriented software engineering
Varsha Ajith
 
Placement management system
Placement management systemPlacement management system
Placement management system
Surya Teja
 
uml.pptx
uml.pptxuml.pptx
uml.pptx
amanuel236786
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
naina-rani
 
OOAD unit1 introduction to object orientation
 OOAD unit1 introduction to object orientation OOAD unit1 introduction to object orientation
OOAD unit1 introduction to object orientation
Dr Chetan Shelke
 
Analysis modeling in software engineering
Analysis modeling in software engineeringAnalysis modeling in software engineering
Analysis modeling in software engineering
MuhammadTalha436
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
Inocentshuja Ahmad
 
2.1 usecase diagram
2.1 usecase diagram2.1 usecase diagram
2.1 usecase diagram
Ashenafi Workie
 
Building an Information System
Building an Information SystemBuilding an Information System
Building an Information System
Jo Balucanag - Bitonio
 
Object oriented analysis
Object oriented analysisObject oriented analysis
Object oriented analysis
Mahesh Bhalerao
 
OBJECT ORIENTED ANALYSIS FOR EASY UNDERSTANDING .ppt
OBJECT ORIENTED ANALYSIS FOR EASY UNDERSTANDING .pptOBJECT ORIENTED ANALYSIS FOR EASY UNDERSTANDING .ppt
OBJECT ORIENTED ANALYSIS FOR EASY UNDERSTANDING .ppt
AshishSaraswat30
 
Ch07
Ch07Ch07
Ch07
Ch07Ch07
Oomd unit1
Oomd unit1Oomd unit1
Oomd unit1
VivekChaudhary93
 
Bt8901 objective oriented systems1
Bt8901 objective oriented systems1Bt8901 objective oriented systems1
Bt8901 objective oriented systems1
Techglyphs
 
Visual Modelling and the Unified Modeling Language.ppt
Visual Modelling and the Unified Modeling Language.pptVisual Modelling and the Unified Modeling Language.ppt
Visual Modelling and the Unified Modeling Language.ppt
girumdethio
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
PreethaV16
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
Prakhyath Rai
 
Modeling- Object, Dynamic and Functional
Modeling- Object, Dynamic and FunctionalModeling- Object, Dynamic and Functional
Modeling- Object, Dynamic and Functional
Rajani Bhandari
 
object modeling chapter 4 for students a
object modeling chapter 4 for students aobject modeling chapter 4 for students a
object modeling chapter 4 for students a
SaudFlash1
 

Similar to A&D - Object Oriented Analysis using UML (20)

Object oriented software engineering
Object oriented software engineeringObject oriented software engineering
Object oriented software engineering
 
Placement management system
Placement management systemPlacement management system
Placement management system
 
uml.pptx
uml.pptxuml.pptx
uml.pptx
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
 
OOAD unit1 introduction to object orientation
 OOAD unit1 introduction to object orientation OOAD unit1 introduction to object orientation
OOAD unit1 introduction to object orientation
 
Analysis modeling in software engineering
Analysis modeling in software engineeringAnalysis modeling in software engineering
Analysis modeling in software engineering
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
2.1 usecase diagram
2.1 usecase diagram2.1 usecase diagram
2.1 usecase diagram
 
Building an Information System
Building an Information SystemBuilding an Information System
Building an Information System
 
Object oriented analysis
Object oriented analysisObject oriented analysis
Object oriented analysis
 
OBJECT ORIENTED ANALYSIS FOR EASY UNDERSTANDING .ppt
OBJECT ORIENTED ANALYSIS FOR EASY UNDERSTANDING .pptOBJECT ORIENTED ANALYSIS FOR EASY UNDERSTANDING .ppt
OBJECT ORIENTED ANALYSIS FOR EASY UNDERSTANDING .ppt
 
Ch07
Ch07Ch07
Ch07
 
Ch07
Ch07Ch07
Ch07
 
Oomd unit1
Oomd unit1Oomd unit1
Oomd unit1
 
Bt8901 objective oriented systems1
Bt8901 objective oriented systems1Bt8901 objective oriented systems1
Bt8901 objective oriented systems1
 
Visual Modelling and the Unified Modeling Language.ppt
Visual Modelling and the Unified Modeling Language.pptVisual Modelling and the Unified Modeling Language.ppt
Visual Modelling and the Unified Modeling Language.ppt
 
Object Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOADObject Oriented Analysis and Design - OOAD
Object Oriented Analysis and Design - OOAD
 
Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...Software Engineering and Project Management - Introduction, Modeling Concepts...
Software Engineering and Project Management - Introduction, Modeling Concepts...
 
Modeling- Object, Dynamic and Functional
Modeling- Object, Dynamic and FunctionalModeling- Object, Dynamic and Functional
Modeling- Object, Dynamic and Functional
 
object modeling chapter 4 for students a
object modeling chapter 4 for students aobject modeling chapter 4 for students a
object modeling chapter 4 for students a
 

More from vinay arora

Search engine and web crawler
Search engine and web crawlerSearch engine and web crawler
Search engine and web crawler
vinay arora
 
Use case diagram (airport)
Use case diagram (airport)Use case diagram (airport)
Use case diagram (airport)
vinay arora
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
vinay arora
 
Lab exercise questions (AD & CD)
Lab exercise questions (AD & CD)Lab exercise questions (AD & CD)
Lab exercise questions (AD & CD)
vinay arora
 
SEM - UML (1st case study)
SEM - UML (1st case study)SEM - UML (1st case study)
SEM - UML (1st case study)
vinay arora
 
6 java - loop
6  java - loop6  java - loop
6 java - loop
vinay arora
 
4 java - decision
4  java - decision4  java - decision
4 java - decision
vinay arora
 
3 java - variable type
3  java - variable type3  java - variable type
3 java - variable type
vinay arora
 
2 java - operators
2  java - operators2  java - operators
2 java - operators
vinay arora
 
1 java - data type
1  java - data type1  java - data type
1 java - data type
vinay arora
 
Uta005 lecture3
Uta005 lecture3Uta005 lecture3
Uta005 lecture3
vinay arora
 
Uta005 lecture1
Uta005 lecture1Uta005 lecture1
Uta005 lecture1
vinay arora
 
Uta005 lecture2
Uta005 lecture2Uta005 lecture2
Uta005 lecture2
vinay arora
 
Security & Protection
Security & ProtectionSecurity & Protection
Security & Protection
vinay arora
 
Process Synchronization
Process SynchronizationProcess Synchronization
Process Synchronization
vinay arora
 
CG - Output Primitives
CG - Output PrimitivesCG - Output Primitives
CG - Output Primitives
vinay arora
 
CG - Display Devices
CG - Display DevicesCG - Display Devices
CG - Display Devices
vinay arora
 
CG - Input Output Devices
CG - Input Output DevicesCG - Input Output Devices
CG - Input Output Devices
vinay arora
 
CG - Introduction to Computer Graphics
CG - Introduction to Computer GraphicsCG - Introduction to Computer Graphics
CG - Introduction to Computer Graphics
vinay arora
 
C Prog. - Strings (Updated)
C Prog. - Strings (Updated)C Prog. - Strings (Updated)
C Prog. - Strings (Updated)
vinay arora
 

More from vinay arora (20)

Search engine and web crawler
Search engine and web crawlerSearch engine and web crawler
Search engine and web crawler
 
Use case diagram (airport)
Use case diagram (airport)Use case diagram (airport)
Use case diagram (airport)
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
 
Lab exercise questions (AD & CD)
Lab exercise questions (AD & CD)Lab exercise questions (AD & CD)
Lab exercise questions (AD & CD)
 
SEM - UML (1st case study)
SEM - UML (1st case study)SEM - UML (1st case study)
SEM - UML (1st case study)
 
6 java - loop
6  java - loop6  java - loop
6 java - loop
 
4 java - decision
4  java - decision4  java - decision
4 java - decision
 
3 java - variable type
3  java - variable type3  java - variable type
3 java - variable type
 
2 java - operators
2  java - operators2  java - operators
2 java - operators
 
1 java - data type
1  java - data type1  java - data type
1 java - data type
 
Uta005 lecture3
Uta005 lecture3Uta005 lecture3
Uta005 lecture3
 
Uta005 lecture1
Uta005 lecture1Uta005 lecture1
Uta005 lecture1
 
Uta005 lecture2
Uta005 lecture2Uta005 lecture2
Uta005 lecture2
 
Security & Protection
Security & ProtectionSecurity & Protection
Security & Protection
 
Process Synchronization
Process SynchronizationProcess Synchronization
Process Synchronization
 
CG - Output Primitives
CG - Output PrimitivesCG - Output Primitives
CG - Output Primitives
 
CG - Display Devices
CG - Display DevicesCG - Display Devices
CG - Display Devices
 
CG - Input Output Devices
CG - Input Output DevicesCG - Input Output Devices
CG - Input Output Devices
 
CG - Introduction to Computer Graphics
CG - Introduction to Computer GraphicsCG - Introduction to Computer Graphics
CG - Introduction to Computer Graphics
 
C Prog. - Strings (Updated)
C Prog. - Strings (Updated)C Prog. - Strings (Updated)
C Prog. - Strings (Updated)
 

Recently uploaded

BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
Nguyen Thanh Tu Collection
 
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
Kalna College
 
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
220711130083 SUBHASHREE RAKSHIT  Internet resources for social science220711130083 SUBHASHREE RAKSHIT  Internet resources for social science
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
Kalna College
 
Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024
khabri85
 
Non-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech ProfessionalsNon-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech Professionals
MattVassar1
 
220711130095 Tanu Pandey message currency, communication speed & control EPC ...
220711130095 Tanu Pandey message currency, communication speed & control EPC ...220711130095 Tanu Pandey message currency, communication speed & control EPC ...
220711130095 Tanu Pandey message currency, communication speed & control EPC ...
Kalna College
 
Slides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptxSlides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptx
shabeluno
 
Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
whatchangedhowreflec
 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
MJDuyan
 
How to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRMHow to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRM
Celine George
 
Observational Learning
Observational Learning Observational Learning
Observational Learning
sanamushtaq922
 
Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024
Friends of African Village Libraries
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapitolTechU
 
220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology
Kalna College
 
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptxScience-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Catherine Dela Cruz
 
220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
Kalna College
 
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
ShwetaGawande8
 
Decolonizing Universal Design for Learning
Decolonizing Universal Design for LearningDecolonizing Universal Design for Learning
Decolonizing Universal Design for Learning
Frederic Fovet
 
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
yarusun
 
8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity
RuchiRathor2
 

Recently uploaded (20)

BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
 
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
 
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
220711130083 SUBHASHREE RAKSHIT  Internet resources for social science220711130083 SUBHASHREE RAKSHIT  Internet resources for social science
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
 
Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024
 
Non-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech ProfessionalsNon-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech Professionals
 
220711130095 Tanu Pandey message currency, communication speed & control EPC ...
220711130095 Tanu Pandey message currency, communication speed & control EPC ...220711130095 Tanu Pandey message currency, communication speed & control EPC ...
220711130095 Tanu Pandey message currency, communication speed & control EPC ...
 
Slides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptxSlides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptx
 
Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
 
How to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRMHow to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRM
 
Observational Learning
Observational Learning Observational Learning
Observational Learning
 
Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
 
220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology220711130097 Tulip Samanta Concept of Information and Communication Technology
220711130097 Tulip Samanta Concept of Information and Communication Technology
 
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptxScience-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
 
220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
 
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
 
Decolonizing Universal Design for Learning
Decolonizing Universal Design for LearningDecolonizing Universal Design for Learning
Decolonizing Universal Design for Learning
 
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
Get Success with the Latest UiPath UIPATH-ADPV1 Exam Dumps (V11.02) 2024
 
8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity
 

A&D - Object Oriented Analysis using UML

  • 1. Object Oriented Analysis with UML Organized By: Vinay Arora Assistant Professor, CSED, Thapar University www.slideshare.net/aroravinay
  • 2. Disclaimer This is NOT A COPYRIGHT MATERIAL Content has been taken mainly from the following books: System Analysis and Design Methods By Jeffrey L Whitten & Lonnie D Bentley , Analysis & Design of Information Systems By James A. Senn, System Analysis & Design By Elias M. Awad, Modern System Analysis & Design By Jeffrey A. Hoffer, Joey F.George & Joseph S. Valacich
  • 3. Object Oriented Analysis Object-Oriented Analysis (OOA) – An Approach used to 1. Study existing objects to see if they can be reused or adapted for new uses 2. Define new or modified objects that will be combined with existing objects into a useful business computing application Object Modeling – A Technique for Identifying objects within the systems environment and the relationships between those objects.
  • 4. UML UNIFIED MODELING LANGUAGE (UML) – A Set of modeling conventions that is used to specify or describe a software system in terms of objects. The UML does not prescribe a method for developing systems. Only a notation that is now widely accepted as a standard for object modeling.
  • 5. Object & Attribute Object – something that is or is capable of being seen, touched, or otherwise sensed, and about which users store data and associate behavior. Person, place, thing, or event Employee, customer, instructor, student Warehouse, office, building, room Product, vehicle, computer, videotape Attribute – the data that represent characteristics of interest about an object. Object Instance – each specific person, place, thing, or event, as well as the values for the attributes of that object.
  • 6.
  • 7. CLASS Behavior – the set of things that the object can do that correspond to functions that act on the object’s data (or attributes). In object-oriented circles, an object’s behavior is commonly referred to as a method, operation, or service. Encapsulation – the packaging of several items together into one unit. CLASS – A Set of Objects that share common attributes and behavior. Sometimes referred to as an object class.
  • 9. Inheritance : – The Concept wherein methods and/or attributes defined in an object class can be inherited or reused by another object class.
  • 10. Generalization/Specialization Generalization/Specialization:- A Technique wherein the attributes and behaviors that are common to several types of object classes are grouped (or abstracted) into their own class, called a supertype. The attributes and methods of the supertype object class are then inherited by those object classes. Supertype:- An Entity that contains attributes and behaviors that are common to one or more class subtypes. Subtype:- An Object Class that Inherits attributes and behaviors from a supertype class and then may contain other attributes and behaviors that are unique to it.
  • 12. UML Representation of Generalization/Specialization
  • 13. Object/Class Relationship Object/Class Relationship – A Natural business association that exists between one or more Objects and Classes.
  • 14. Multiplicity and UML Multiplicity Notations Multiplicity – The Minimum and Maximum number of occurrences of one Object/Class for a single occurrence of the related Object/Class.
  • 15.
  • 16. Aggregation Aggregation – A Relationship in which one larger “whole” class contains one or more smaller “parts” classes. Conversely, a smaller “part” class is part of a “whole” larger class.
  • 17. Messages Message – Communication that occurs when one object invokes another object’s method (behavior) to request information or some action.
  • 18. Polymorphism Polymorphism – literally meaning “many forms,” the concept that different objects can respond to the same message in different ways.
  • 19. UML Diagrams Use-Case Model Diagrams Static Structure Diagrams Class diagrams Object diagrams Interaction Diagrams Sequence diagrams Collaboration diagrams State Diagrams State chart diagrams Activity diagrams Implementation Diagrams Component diagrams Deployment diagrams
  • 22. Process of Object Modeling • Modeling the functions of the system. • Finding and identifying the business objects. • Organizing the objects and identifying their relationships.
  • 23. System Use Case The following steps evolve the requirements Use-case model into an Analysis Use-case model: 1. Identify, define, and document new actors. 2. Identify, define, and document new use cases. 3. Identify any reuse possibilities. 4. Refine the use-case model diagram (if necessary). 5. Document system analysis use-case narratives.
  • 24. System Use Case (contd.)
  • 25. System Analysis Use Case A Use Case that Documents the Interaction between the System User and the System. It is highly detailed in describing What Is Required but is free from most implementation details and constraints. Use Case Diagram TYPES – - Abstract Use Case - Extension Use Case
  • 26.
  • 27.
  • 28.
  • 29.
  • 31. Activity Diagram A Diagram that can be used to graphically depict the flow of a business process, the steps of a use case, or the logic of an object behavior (method). One or more activity diagram can be constructed for each use case (more than one if use case is long or contains complex logic). Solid dot represents the start of the process. A rounded-corner rectangle represents an activity or Create Backorder task that needs to be performed. Arrows depict triggers that initiate activities. A solid black bar is a synchronization bar that allows you to depict activities that occur in parallel.
  • 32. Guidelines for Constructing Activity Diagram Start with the one Initial node as a Starting point. Add partitions if they are relevant to your Analysis. Add an Action for each major Step of the use case. Add flows from each action to another action, a decision point or an end point. Add decisions where flows diverge with alternating routes. Add Forks and Joins where activities are performed in PARALLEL. End with a single notation for activity FINAL.
  • 33. An Example of Activity Diagram Example:- Activity Diagram
  • 34.
  • 35. Activity Diagram with Partitioning
  • 36. Sequence Diagram A diagram that depicts the interaction between an Actor and the System for a use case scenario. A Sequence diagram depicts how objects interact with each other via messages in the execution of a use case or operation. Components of A System Sequence Diagram:- Actor System Lifelines Activation Bars Input Messages Output Message Receiver Actor Frame
  • 37. e uenc m Seq S yste iagram D
  • 38. Sequence Diagram for Login Validation
  • 39. Finding Potential Objects 1. Find the Potential Objects Review each use case to Find Nouns that correspond to business entities or events. 2. Select the Proposed Objects NOT ALL NOUNS represent business objects. Ask: Is the candidate a synonym of another object? Is the candidate outside the scope of the system? Is the candidate a role without unique behavior, or is it an external role? Is the candidate unclear or in need of focus? Is the candidate an action or an attribute that describes another object?
  • 40. Partial Use-Case Narrative with Nouns Highlighted DESCRIPTION: This use case describes the event of a member submitting a new order for SoundStage products via the world wide web. The member selects the items they wish to purchase. Once they have completed their shopping, the member’s demographic information as well as their account standing will be validated. Once the products are verified as being in stock, a packing order is sent to the distribution center for them to prepare the shipment. For any product not in stock, a back order is created. On completion, the member will be sent an order confirmation. PRE-CONDITION: The individual submitting the order must be an active club member. The member must login in to the system (provide identification) to enter an order. TRIGGER: This use case is initiated when the member selects the option to enter a new order. TYPICAL COURSE Actor Action System Response OF EVENTS: Step 1: The member requests the Step 2: The system responds by displaying the option to enter a new order. catalogue of the SoundStage products. Step 3: The Member browses the Step 4: Once the member has completed their available items and selects the ones selections the system retrieves from file and they wish to purchase along with the presents the member’s demographic information quantity. (shipping and billing addresses). Step 5: The member verifies Step 6: For each product ordered, the system demographic information (shipping verifies the product availability and determines and billing addresses). If no changes an expected ship date, determines the price to be are necessary they respond charged to the member, and determines the cost accordingly (to continue). of the total order. If an item is not immediately available it indicates that the product is backordered or that it has not been released for shipping (for pre-orders). If an item is no longer available that is indicated also. The system then displays a summary of the order to the member for verification. Step 7: The member verifies the Step 8: The system checks the status of the order. If no changes are necessary member’s account. If satisfactory, the system they respond accordingly (to prompts the member to select the desired continue). payment option (to be billed later or pay immediately with a credit card).
  • 41. US IO TS AR EC V BJ O
  • 42. TED EC SEL S LY E CT NAL OBJ FI
  • 43. Selecting Objects Is the candidate a synonym of another object? Is the candidate outside the scope of the system? Is the candidate a role without unique behavior, or is it an external role? Is the candidate unclear or in need of focus? Is the candidate an action or an attribute that describes another object?
  • 45. Organizing the Objects and Identifying their Relationships 1. Identifying Associations and Multiplicity 2. Identifying Generalization/Specialization Relationships 3. Identifying Aggregation Relationships 4. Prepare the Class Diagram
  • 46. Class Diagram Class Diagram – A Graphical depiction of a system’s Static Object Structure, showing object classes that the system is composed of as well as the relationships between those object classes.
  • 50. Reference List 1. System Analysis and Design Methods By Jeffrey L Whitten & Lonnie D Bentley 2. Analysis & Design of Information Systems By James A. Senn 3. System Analysis & Design By Elias M. Awad 4. Modern System Analysis & Design By Jeffrey A. Hoffer, Joey F.George & Joseph S. Valacich etc…….
  翻译: