SlideShare a Scribd company logo
14
Most read
16
Most read
18
Most read
Object Analysis

   classification
Classification theory
• Process of checking to see if an object
  belongs to a category or a class
Approaches for identifying classes
1. Noun phrase approach
2. Common class patterns approach
3. Use case driven ,sequence/collaboration
   approach
4. Classes, responsibilities and
   Collaborators (CRC) approach
Noun phrase approach
• Identify Noun phrases from requirements or use
  cases
• Nouns - classes
• Verbs      - methods
• All plurals          singular
• Create a List of nouns
  – Divided into 3 categories
     • Relevant classes               Candidate classes
     • Fuzzy classes
     • Irrelevant classes

                     Removed safely
cont…
• Identifying tentative classes
• Guidelines
  – Look for nouns and noun phrases in the use
    case
  – Some classes are implicit and taken from
    knowledge
  – Avoid computer implementation classes (defer
    them to design phase). application domain
    related classes makes sense
  – Carefully choose and define class name
Guidelines :Selecting classes from
relevant and fuzzy category
• Redundant classes
   – Avoid
   – Choose more meaningful name and name used by user
• Adjective classes
   – Adjective can suggest
       • Different kind of object
       • Different use of same object
       • Utterly irrelevant
   eg: adult member and youth member
• Attribute classes
   – Objects used only as value can be treated as attribute instead of
     classes
• Irrelevant classes
   – Relevant class have statement of purpose.
   – Irrelevant classes - have no statement of purpose
Initial list of noun classes : in vianet bank
•   Account            • Client        • Record
•   Account balance    • Client’s      • Savings
•   Amount               account       • Savings
•   Approval process   • Currency        account
•   Atm card           • Dollar        • Step
•   Atm machine        • Envelope      • System
•   Bank               • Four digits   • Transaction
•   Bank client        • Fund          • transaction
•   Card               • Invalid pin     history
•   Cash               • Message
•   Check              • Money
•   Checking           • Password
•   Checking           • PIN
    account            • Pin code
Removing irrelevant classes
•   Account            • Client        • Record
•   Account balance    • Client’s      • Savings
•   Amount               account       • Savings
•   Approval process   • Currency        account
•   Atm card           • Dollar        • Step
•   Atm machine        • Envelope      • System
•   Bank               • Four digits   • Transaction
•   Bank client        • Fund          • transaction
•   Card               • Invalid pin     history
•   Cash               • Message
•   Check              • Money
•   Checking           • Password
•   Checking           • PIN
    account            • Pin code
Removing redundant classe and
building common vocabulary
•   Account            • Client        • Record
•   Account balance    • Client’s      • Savings
•   Amount               account       • Savings
•   Approval process   • Currency        account
•   Atm card           • Dollar        • Step
•   Atm machine        • Envelope      • System
•   Bank               • Four digits   • Transaction
•   Bank client        • Fund          • transaction
•   Card               • Invalid pin     history
•   Cash               • Message
•   Check              • Money
•   Checking           • Password
•   Checking           • PIN
    account            • Pin code
Reviewing the classes containing
            adjectives
• When class represented by noun behaves
  differently when adjective is applied to it,
  then separate class has to be created
• In this ex no such classes
Reviewing the possible attributes


• Noun phrases used only as values should
  be treated as attributes
Reviewing possible attributes
•   Account            • Client        • Record
•   Account balance    • Client’s      • Savings
•   Amount               account       • Savings
•   Approval process   • Currency        account
•   Atm card           • Dollar        • Step
•   Atm machine        • Envelope      • System
•   Bank               • Four digits   • Transaction
•   Bank client        • Fund          • transaction
•   Card               • Invalid pin     history
•   Cash               • Message
•   Check              • Money
•   Checking           • Password
•   Checking           • PIN
    account            • Pin code
Reviewing the class purpose
• Include classes with
   – Purpose
   – Clear definition
   – Necessary in achieving system goal
• Eliminate classes with no purpose
• Ex: Candidate class with purpose are
   –   ATM machine class
   –   ATM card class
   –   Bankclient class
   –   Bank class
   –   Account class
   –   Checking account class
   –   Saving account class
   –   Transaction class
Common class pattern approach
•   Based on knowledge base of the common classes ,
•   proposed by researchers like shlaer and mellor
•   Patterns for finding class and object
     – Concept class
         • Particular idea or understanding
              – Ex: performance
     – Event class
         • Are points in time tat must be recorded
         • Ex : account, request, order
     – Organization class
         • Collection of people, resources, facilities or groups to which the user belongs
         • Ex : account dept,bank
     – People class
         • Represents different roles user plays in interacting with the system.
         • Ex : bank client
     – Places class
         • Physical location that the system must keep inform about
         • Ex :
     – Tangible things and devices
         • Includes physical objects or group of objects
         • Ex : atmmachine
Use case driven approach
• Identifying classes and their usage
  through sequence collaboration modelling
• Recommended approach
• Problem driven approach
  – Prob is considered 1st. Not the relationship bw objects
    (like in data driven approach)
• Atleast one senario be prepared for each
  significantly different use case instance
• Use case diag – high level view of the system
• Sequence diag – interaction among objects
  – By walking through the steps, we can determine what
    objects necessary for those steps to take place
client                        atmmachine                       Bank client

            Insert atm card

            Request pin
           Enter pin number
                                           Verify pin number

                                           Bad pin number
         Bad pin number
Classes , Responsibilities, and
           Collaborators
• Classes ,responsibilities, collaborators
   – Leads to identifying its attributes and methods
• CRC index card
   – 4” * 6” card
   – Cheap, portable, readily available, familiar
   – Contains all information

           Class name             Collaborators

            Responsibiliti
            es in bullet
            format
CRC process
• 3 steps
                            Identify
                            classes
                         responsibility(
                          and identify
                            classes)


               iterate

                                              Assign
          Identify                         responsibiliti
       collaborators                            es
Atm system
Account          Checking
                 account
Balance
                 (sub class)
Number
                 Saving
                 account
Withdraw         (sub class)
Deposit
getbalance
Guidelines: Naming class
•   Singular
•   Use standard vocabulary
•   Reflect its intrinsic feature
•   Readable names

More Related Content

PPTX
Object oriented methodologies
PPTX
System protection in Operating System
PDF
M.c.a. (sem ii) operating systems
PPT
Unit 3(advanced state modeling & interaction meodelling)
PPTX
Os unit 3
DOCX
Car Showroom management System in c++
PPTX
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
PDF
Unit 4- Software Engineering System Model Notes
Object oriented methodologies
System protection in Operating System
M.c.a. (sem ii) operating systems
Unit 3(advanced state modeling & interaction meodelling)
Os unit 3
Car Showroom management System in c++
CS8592-OOAD-UNIT II-STATIC UML DIAGRAMS PPT
Unit 4- Software Engineering System Model Notes

What's hot (20)

PPT
Unit 4 designing classes
PPT
Unt 3 attributes, methods, relationships-1
PPT
PPT
PPTX
object oriented methodologies
PPTX
Syntax Analysis in Compiler Design
PDF
Code optimization in compiler design
PPTX
Ooad unit – 1 introduction
PPTX
Ooad presentatin crc cards
PPTX
Type checking in compiler design
PPTX
Design Concepts in Software Engineering-1.pptx
PPTX
Structure of agents
PPTX
Finite automata-for-lexical-analysis
PPT
Domain model
PDF
Target language in compiler design
PPT
Uml class-diagram
ODP
White box ppt
PPT
Unit 5 usability and satisfaction test
DOC
Time and space complexity
PPTX
Classes, objects in JAVA
Unit 4 designing classes
Unt 3 attributes, methods, relationships-1
object oriented methodologies
Syntax Analysis in Compiler Design
Code optimization in compiler design
Ooad unit – 1 introduction
Ooad presentatin crc cards
Type checking in compiler design
Design Concepts in Software Engineering-1.pptx
Structure of agents
Finite automata-for-lexical-analysis
Domain model
Target language in compiler design
Uml class-diagram
White box ppt
Unit 5 usability and satisfaction test
Time and space complexity
Classes, objects in JAVA
Ad

Viewers also liked (20)

PPT
Object oriented analysis
PPT
PPT
Object Oriented Relationships
PPTX
Dynamic and Static Modeling
PPT
Object Oriented Analysis and Design
PPT
Object-Oriented Analysis & Design (OOAD) Domain Modeling Introduction
PPTX
PPTX
Object relationship model of software engineering,a subtopic of object orient...
PPT
Object Oriented Design
PPT
Ooad
PDF
Ooad
PPT
Object Oriented Design Concept
PPT
Object Oriented Design in Software Engineering SE12
DOCX
Library Management System
PPT
Noun phrases
PDF
PPTX
Structured Vs, Object Oriented Analysis and Design
PDF
Domain Modeling
PDF
Object oriented-systems-development-life-cycle ppt
Object oriented analysis
Object Oriented Relationships
Dynamic and Static Modeling
Object Oriented Analysis and Design
Object-Oriented Analysis & Design (OOAD) Domain Modeling Introduction
Object relationship model of software engineering,a subtopic of object orient...
Object Oriented Design
Ooad
Ooad
Object Oriented Design Concept
Object Oriented Design in Software Engineering SE12
Library Management System
Noun phrases
Structured Vs, Object Oriented Analysis and Design
Domain Modeling
Object oriented-systems-development-life-cycle ppt
Ad

Similar to Unit 3 object analysis-classification (20)

PPT
unit3-objectanalysis-classification-120310233747-phpapp01.ppt
PPTX
Chapter 7 ooad
PPTX
ppt.pptx
PPTX
Programming Paradigms Seminar 3
PPTX
Programming Paradigms - Seminar 3
PPT
PPTX
Domain class model
PPTX
OODM through UML [Chapter 2] according to PU.pptx
DOC
Object oriented programming
PDF
Industry - Relating Developers' Concepts and Artefact Vocabulary in a Financ...
PPTX
Object Oriented Software Development revision slide
PDF
Testing Rich Domain Models
PPTX
Class Diagram for easy understanding and concept
PPT
Unt 3 attributes, methods, relationships-1
PDF
Introduction to-ddd
PDF
PPT
Unit three identifying actors
PPT
Unit three identifying actors
PPTX
Unit-2.pptx
DOCX
SRSTemplate (1).docx thi si for the studenst appearing for software engineering
unit3-objectanalysis-classification-120310233747-phpapp01.ppt
Chapter 7 ooad
ppt.pptx
Programming Paradigms Seminar 3
Programming Paradigms - Seminar 3
Domain class model
OODM through UML [Chapter 2] according to PU.pptx
Object oriented programming
Industry - Relating Developers' Concepts and Artefact Vocabulary in a Financ...
Object Oriented Software Development revision slide
Testing Rich Domain Models
Class Diagram for easy understanding and concept
Unt 3 attributes, methods, relationships-1
Introduction to-ddd
Unit three identifying actors
Unit three identifying actors
Unit-2.pptx
SRSTemplate (1).docx thi si for the studenst appearing for software engineering

More from gopal10scs185 (20)

PPTX
Unit4 desiging classes
PPT
Unit 5 testing
PPT
PPT
Unit 5 usability and satisfaction test
PPT
Unit 5 testing -software quality assurance
PPT
PPT
Unit 4 designing classes
PPT
Unit 3 object analysis-classification
PPT
Unit 3 attributes, methods, relationships
PPT
Unit4 desiging classes
Unit 5 testing
Unit 5 usability and satisfaction test
Unit 5 testing -software quality assurance
Unit 4 designing classes
Unit 3 object analysis-classification
Unit 3 attributes, methods, relationships

Recently uploaded (20)

PDF
Mathematical Economics 23lec03slides.pdf
PDF
ECONOMICS AND ENTREPRENEURS LESSONSS AND
PPTX
Introduction to Essence of Indian traditional knowledge.pptx
PPTX
Who’s winning the race to be the world’s first trillionaire.pptx
PDF
way to join Real illuminati agent 0782561496,0756664682
PDF
Dr Tran Quoc Bao the first Vietnamese speaker at GITEX DigiHealth Conference ...
PPTX
The discussion on the Economic in transportation .pptx
PDF
Q2 2025 :Lundin Gold Conference Call Presentation_Final.pdf
PDF
Why Ignoring Passive Income for Retirees Could Cost You Big.pdf
PPTX
Introduction to Managemeng Chapter 1..pptx
PDF
ADVANCE TAX Reduction using traditional insurance
PDF
financing insitute rbi nabard adb imf world bank insurance and credit gurantee
PDF
Dialnet-DynamicHedgingOfPricesOfNaturalGasInMexico-8788871.pdf
PPTX
social-studies-subject-for-high-school-globalization.pptx
PPTX
Session 3. Time Value of Money.pptx_finance
PDF
illuminati Uganda brotherhood agent in Kampala call 0756664682,0782561496
PPTX
What is next for the Fractional CFO - August 2025
PPTX
4.5.1 Financial Governance_Appropriation & Finance.pptx
PDF
Blockchain Pesa Research by Samuel Mefane
PPTX
Introduction to Customs (June 2025) v1.pptx
Mathematical Economics 23lec03slides.pdf
ECONOMICS AND ENTREPRENEURS LESSONSS AND
Introduction to Essence of Indian traditional knowledge.pptx
Who’s winning the race to be the world’s first trillionaire.pptx
way to join Real illuminati agent 0782561496,0756664682
Dr Tran Quoc Bao the first Vietnamese speaker at GITEX DigiHealth Conference ...
The discussion on the Economic in transportation .pptx
Q2 2025 :Lundin Gold Conference Call Presentation_Final.pdf
Why Ignoring Passive Income for Retirees Could Cost You Big.pdf
Introduction to Managemeng Chapter 1..pptx
ADVANCE TAX Reduction using traditional insurance
financing insitute rbi nabard adb imf world bank insurance and credit gurantee
Dialnet-DynamicHedgingOfPricesOfNaturalGasInMexico-8788871.pdf
social-studies-subject-for-high-school-globalization.pptx
Session 3. Time Value of Money.pptx_finance
illuminati Uganda brotherhood agent in Kampala call 0756664682,0782561496
What is next for the Fractional CFO - August 2025
4.5.1 Financial Governance_Appropriation & Finance.pptx
Blockchain Pesa Research by Samuel Mefane
Introduction to Customs (June 2025) v1.pptx

Unit 3 object analysis-classification

  • 1. Object Analysis classification
  • 2. Classification theory • Process of checking to see if an object belongs to a category or a class
  • 3. Approaches for identifying classes 1. Noun phrase approach 2. Common class patterns approach 3. Use case driven ,sequence/collaboration approach 4. Classes, responsibilities and Collaborators (CRC) approach
  • 4. Noun phrase approach • Identify Noun phrases from requirements or use cases • Nouns - classes • Verbs - methods • All plurals singular • Create a List of nouns – Divided into 3 categories • Relevant classes Candidate classes • Fuzzy classes • Irrelevant classes Removed safely
  • 5. cont… • Identifying tentative classes • Guidelines – Look for nouns and noun phrases in the use case – Some classes are implicit and taken from knowledge – Avoid computer implementation classes (defer them to design phase). application domain related classes makes sense – Carefully choose and define class name
  • 6. Guidelines :Selecting classes from relevant and fuzzy category • Redundant classes – Avoid – Choose more meaningful name and name used by user • Adjective classes – Adjective can suggest • Different kind of object • Different use of same object • Utterly irrelevant eg: adult member and youth member • Attribute classes – Objects used only as value can be treated as attribute instead of classes • Irrelevant classes – Relevant class have statement of purpose. – Irrelevant classes - have no statement of purpose
  • 7. Initial list of noun classes : in vianet bank • Account • Client • Record • Account balance • Client’s • Savings • Amount account • Savings • Approval process • Currency account • Atm card • Dollar • Step • Atm machine • Envelope • System • Bank • Four digits • Transaction • Bank client • Fund • transaction • Card • Invalid pin history • Cash • Message • Check • Money • Checking • Password • Checking • PIN account • Pin code
  • 8. Removing irrelevant classes • Account • Client • Record • Account balance • Client’s • Savings • Amount account • Savings • Approval process • Currency account • Atm card • Dollar • Step • Atm machine • Envelope • System • Bank • Four digits • Transaction • Bank client • Fund • transaction • Card • Invalid pin history • Cash • Message • Check • Money • Checking • Password • Checking • PIN account • Pin code
  • 9. Removing redundant classe and building common vocabulary • Account • Client • Record • Account balance • Client’s • Savings • Amount account • Savings • Approval process • Currency account • Atm card • Dollar • Step • Atm machine • Envelope • System • Bank • Four digits • Transaction • Bank client • Fund • transaction • Card • Invalid pin history • Cash • Message • Check • Money • Checking • Password • Checking • PIN account • Pin code
  • 10. Reviewing the classes containing adjectives • When class represented by noun behaves differently when adjective is applied to it, then separate class has to be created • In this ex no such classes
  • 11. Reviewing the possible attributes • Noun phrases used only as values should be treated as attributes
  • 12. Reviewing possible attributes • Account • Client • Record • Account balance • Client’s • Savings • Amount account • Savings • Approval process • Currency account • Atm card • Dollar • Step • Atm machine • Envelope • System • Bank • Four digits • Transaction • Bank client • Fund • transaction • Card • Invalid pin history • Cash • Message • Check • Money • Checking • Password • Checking • PIN account • Pin code
  • 13. Reviewing the class purpose • Include classes with – Purpose – Clear definition – Necessary in achieving system goal • Eliminate classes with no purpose • Ex: Candidate class with purpose are – ATM machine class – ATM card class – Bankclient class – Bank class – Account class – Checking account class – Saving account class – Transaction class
  • 14. Common class pattern approach • Based on knowledge base of the common classes , • proposed by researchers like shlaer and mellor • Patterns for finding class and object – Concept class • Particular idea or understanding – Ex: performance – Event class • Are points in time tat must be recorded • Ex : account, request, order – Organization class • Collection of people, resources, facilities or groups to which the user belongs • Ex : account dept,bank – People class • Represents different roles user plays in interacting with the system. • Ex : bank client – Places class • Physical location that the system must keep inform about • Ex : – Tangible things and devices • Includes physical objects or group of objects • Ex : atmmachine
  • 15. Use case driven approach • Identifying classes and their usage through sequence collaboration modelling
  • 16. • Recommended approach • Problem driven approach – Prob is considered 1st. Not the relationship bw objects (like in data driven approach) • Atleast one senario be prepared for each significantly different use case instance • Use case diag – high level view of the system • Sequence diag – interaction among objects – By walking through the steps, we can determine what objects necessary for those steps to take place
  • 17. client atmmachine Bank client Insert atm card Request pin Enter pin number Verify pin number Bad pin number Bad pin number
  • 18. Classes , Responsibilities, and Collaborators • Classes ,responsibilities, collaborators – Leads to identifying its attributes and methods • CRC index card – 4” * 6” card – Cheap, portable, readily available, familiar – Contains all information Class name Collaborators Responsibiliti es in bullet format
  • 19. CRC process • 3 steps Identify classes responsibility( and identify classes) iterate Assign Identify responsibiliti collaborators es
  • 20. Atm system Account Checking account Balance (sub class) Number Saving account Withdraw (sub class) Deposit getbalance
  • 21. Guidelines: Naming class • Singular • Use standard vocabulary • Reflect its intrinsic feature • Readable names