SlideShare a Scribd company logo
1 of 20
Object Oriented System Design
Module-2,Part-2
B.tech CSE,7th Sem
Dr.Anshul Tickoo
ASSOCIATIONS
Association defines the relationship between two or
more classes in the System. These generally relates
to the one object having instance or reference of
another object inside it.
Associations in UML can be implemented using
following ways: 1) Multiplicity 2) Aggregation 3)
Composition
ASSOCIATIONS
association
Register
Records-current
Sale
1
1
USEFUL ASSOCIATIONS
 Associations for which knowledge of the relationship
needs to be preserved for some duration.
 Associations derived from the Common Associations
List.
UML ASSOCIATION NOTATION
 An association is represented as a line between classes
with an association name.
 Associations are inherently bidirectional.
 Optional reading direction arrow is only an aid to the
reader of the diagram.
UML ASSOCIATION NOTATION
- “rea d in g d irectio n arro w ”
- it h a s no m ean in g ex c ep t
to in d ic ate d irectio n o f
read in g th e asso c ia tio n
lab el
- o ften ex c lu d ed
R egister Sale
R ec o rd s-cu
rren t
1 1
m ultip lic ity
asso c ia tio n n am e
FINDING ASSOCIATIONS
-COMMON ASSOCIATIONS LIST
The common categories that are worth considering are:
 A is a physical part of B . Eg: Wing-Airplane
 A is a logical part of B. Eg: SalesLineItem-Sale.
 A is physically contained in B . Eg: Register-
Store.
COMMON ASSOCIATIONS LIST 2
 A is logically contained in B.
Eg:ItemDescription- Catalog.
 A is a description of B.Eg:ItemDescription-Item.
 A is a line item of a transaction or report
B.Eg:SalesLineItem-Sale.
 A is a member of B .Eg: Cashier-Store.
 A uses or manages B.Eg:Cashier-Register.
COMMON ASSOCIATIONS LIST 3
 A is known/logged/recorded/reported/captured in B.Eg:
Sale-Register.
 A is an organizational subunit of B .
Eg:Department-Store.
 A communicates with B. Eg:Customer-Cashier.
 A is next to B. Eg:City-City.
COMMON ASSOCIATIONS LIST 4
 A is related to a transaction B. Eg: Customer-
Payment.
 A is a transaction related to another transaction B.
Eg:Payment-Sale.
 A is next to B. Eg:City-City.
 A is owned by B. Eg:Register-Store.
 A is an event related to B. Eg:Sale-Customer.
HIGH-PRIORITY ASSOCIATIONS
 A is a physical or logical part of B.
 A is physically or logically contained in/on B.
 A is recorded in B.
ASSOCIATIONS GUIDELINES
 The knowledge of the relationship needs to be
preserved for some duration.
 Identifying conceptual classes is more important than
identifying associations.
 Avoid showing redundant or derivable associations.
ROLES
 Each end of an association is called a role.
 Roles may have
● name
● multiplicity expression
● navigability
MULTIPLICITY
 Multiplicity defines the number of instances of a class
A ,that can be associated with one instance of class
B,at a particular moment.
 Eg: In countries with monogamy laws,a person can be
married to 1 person at any particular time.But over a
span of time one person can be married to many
persons.
MULTIPLICITY
Store Item
Stocks
1 *
multiplicity of the
role
MULTIPLICITY
*
T zero or more;
“many”
1..*
T one or
more;
one to
40
1..40
T
5
T exactly
5
3,5,8
T exactly 3,5
or 8
NAMING ASSOCIATIONS
 Name an association based on TypeName-VerbPhrase-
TypeName format.
 Names should start with a capital letter.
 Legal formats are:
● Paid-by
● PaidBy
ASSOCIATIONS NAMES
Supervises
*
Assigned-to
Assigned-to
* *
1
1
Employs
1..*
Airline
Person Flight Plane
1
1
Store
1
Contains
1..*
Register Captures Sale Paid-by Payment
1 1..* 1 1
MULTIPLE
ASSOCIATIONS
1
1
*
*
Flies-from
Flight Airport
Flies-to
• Two types may have multiple associations
between them.
THE END

More Related Content

Similar to Module 2.2.pptx

2.6 Associations, Attributes.pptx
2.6 Associations, Attributes.pptx2.6 Associations, Attributes.pptx
2.6 Associations, Attributes.pptx
SKCTCSE
 
08 class and sequence diagrams
08   class and sequence diagrams08   class and sequence diagrams
08 class and sequence diagrams
kebsterz
 
Module 5 oodb systems semantic db systems
Module 5 oodb systems  semantic db systemsModule 5 oodb systems  semantic db systems
Module 5 oodb systems semantic db systems
Taher Barodawala
 
1. Use Case Diagramsa. DescribeIt is a representation of a u.docx
1. Use Case Diagramsa. DescribeIt is a representation of a u.docx1. Use Case Diagramsa. DescribeIt is a representation of a u.docx
1. Use Case Diagramsa. DescribeIt is a representation of a u.docx
jackiewalcutt
 

Similar to Module 2.2.pptx (20)

2.6 Associations, Attributes.pptx
2.6 Associations, Attributes.pptx2.6 Associations, Attributes.pptx
2.6 Associations, Attributes.pptx
 
2.6 Associations, Attributes.pptx
2.6 Associations, Attributes.pptx2.6 Associations, Attributes.pptx
2.6 Associations, Attributes.pptx
 
Unified Modeling Language
Unified Modeling LanguageUnified Modeling Language
Unified Modeling Language
 
UNIT II STATIC UML DIAGRAMS.pptx
UNIT II STATIC UML DIAGRAMS.pptxUNIT II STATIC UML DIAGRAMS.pptx
UNIT II STATIC UML DIAGRAMS.pptx
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
 
ERD - Entity Relationship Diagram
ERD - Entity Relationship DiagramERD - Entity Relationship Diagram
ERD - Entity Relationship Diagram
 
Unit 3
Unit 3Unit 3
Unit 3
 
Object oriented analysis and design using uml classes and objects
Object oriented analysis and  design using uml  classes and objectsObject oriented analysis and  design using uml  classes and objects
Object oriented analysis and design using uml classes and objects
 
08 class and sequence diagrams
08   class and sequence diagrams08   class and sequence diagrams
08 class and sequence diagrams
 
Module 5 oodb systems semantic db systems
Module 5 oodb systems  semantic db systemsModule 5 oodb systems  semantic db systems
Module 5 oodb systems semantic db systems
 
Lecture-OO_Analysis-III.pptx
Lecture-OO_Analysis-III.pptxLecture-OO_Analysis-III.pptx
Lecture-OO_Analysis-III.pptx
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloud
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloud
 
1. Use Case Diagramsa. DescribeIt is a representation of a u.docx
1. Use Case Diagramsa. DescribeIt is a representation of a u.docx1. Use Case Diagramsa. DescribeIt is a representation of a u.docx
1. Use Case Diagramsa. DescribeIt is a representation of a u.docx
 
uml.pptx
uml.pptxuml.pptx
uml.pptx
 
OOSE UNIT-2.pdf
OOSE UNIT-2.pdfOOSE UNIT-2.pdf
OOSE UNIT-2.pdf
 
Glossary
GlossaryGlossary
Glossary
 
Unit 2(advanced class modeling & state diagram)
Unit  2(advanced class modeling & state diagram)Unit  2(advanced class modeling & state diagram)
Unit 2(advanced class modeling & state diagram)
 
Css uml
Css umlCss uml
Css uml
 
Chapter5
Chapter5Chapter5
Chapter5
 

More from DebabrataPain1 (6)

OOSD_UNIT1 (1).pptx
OOSD_UNIT1 (1).pptxOOSD_UNIT1 (1).pptx
OOSD_UNIT1 (1).pptx
 
ML Module 3 Non Linear Learning.pptx
ML Module 3 Non Linear Learning.pptxML Module 3 Non Linear Learning.pptx
ML Module 3 Non Linear Learning.pptx
 
Module 5_detailed ppt.pptx
Module 5_detailed ppt.pptxModule 5_detailed ppt.pptx
Module 5_detailed ppt.pptx
 
er tut 1.ppt
er tut 1.ppter tut 1.ppt
er tut 1.ppt
 
Lecture 1. Introduction to AI and it's applications.ppt
Lecture 1. Introduction to AI and it's applications.pptLecture 1. Introduction to AI and it's applications.ppt
Lecture 1. Introduction to AI and it's applications.ppt
 
ETN-LECTURE_1.pptx
ETN-LECTURE_1.pptxETN-LECTURE_1.pptx
ETN-LECTURE_1.pptx
 

Recently uploaded

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 

Module 2.2.pptx

  • 1. Object Oriented System Design Module-2,Part-2 B.tech CSE,7th Sem Dr.Anshul Tickoo
  • 2. ASSOCIATIONS Association defines the relationship between two or more classes in the System. These generally relates to the one object having instance or reference of another object inside it. Associations in UML can be implemented using following ways: 1) Multiplicity 2) Aggregation 3) Composition
  • 4. USEFUL ASSOCIATIONS  Associations for which knowledge of the relationship needs to be preserved for some duration.  Associations derived from the Common Associations List.
  • 5. UML ASSOCIATION NOTATION  An association is represented as a line between classes with an association name.  Associations are inherently bidirectional.  Optional reading direction arrow is only an aid to the reader of the diagram.
  • 6. UML ASSOCIATION NOTATION - “rea d in g d irectio n arro w ” - it h a s no m ean in g ex c ep t to in d ic ate d irectio n o f read in g th e asso c ia tio n lab el - o ften ex c lu d ed R egister Sale R ec o rd s-cu rren t 1 1 m ultip lic ity asso c ia tio n n am e
  • 7. FINDING ASSOCIATIONS -COMMON ASSOCIATIONS LIST The common categories that are worth considering are:  A is a physical part of B . Eg: Wing-Airplane  A is a logical part of B. Eg: SalesLineItem-Sale.  A is physically contained in B . Eg: Register- Store.
  • 8. COMMON ASSOCIATIONS LIST 2  A is logically contained in B. Eg:ItemDescription- Catalog.  A is a description of B.Eg:ItemDescription-Item.  A is a line item of a transaction or report B.Eg:SalesLineItem-Sale.  A is a member of B .Eg: Cashier-Store.  A uses or manages B.Eg:Cashier-Register.
  • 9. COMMON ASSOCIATIONS LIST 3  A is known/logged/recorded/reported/captured in B.Eg: Sale-Register.  A is an organizational subunit of B . Eg:Department-Store.  A communicates with B. Eg:Customer-Cashier.  A is next to B. Eg:City-City.
  • 10. COMMON ASSOCIATIONS LIST 4  A is related to a transaction B. Eg: Customer- Payment.  A is a transaction related to another transaction B. Eg:Payment-Sale.  A is next to B. Eg:City-City.  A is owned by B. Eg:Register-Store.  A is an event related to B. Eg:Sale-Customer.
  • 11. HIGH-PRIORITY ASSOCIATIONS  A is a physical or logical part of B.  A is physically or logically contained in/on B.  A is recorded in B.
  • 12. ASSOCIATIONS GUIDELINES  The knowledge of the relationship needs to be preserved for some duration.  Identifying conceptual classes is more important than identifying associations.  Avoid showing redundant or derivable associations.
  • 13. ROLES  Each end of an association is called a role.  Roles may have ● name ● multiplicity expression ● navigability
  • 14. MULTIPLICITY  Multiplicity defines the number of instances of a class A ,that can be associated with one instance of class B,at a particular moment.  Eg: In countries with monogamy laws,a person can be married to 1 person at any particular time.But over a span of time one person can be married to many persons.
  • 16. MULTIPLICITY * T zero or more; “many” 1..* T one or more; one to 40 1..40 T 5 T exactly 5 3,5,8 T exactly 3,5 or 8
  • 17. NAMING ASSOCIATIONS  Name an association based on TypeName-VerbPhrase- TypeName format.  Names should start with a capital letter.  Legal formats are: ● Paid-by ● PaidBy
  • 18. ASSOCIATIONS NAMES Supervises * Assigned-to Assigned-to * * 1 1 Employs 1..* Airline Person Flight Plane 1 1 Store 1 Contains 1..* Register Captures Sale Paid-by Payment 1 1..* 1 1
  • 19. MULTIPLE ASSOCIATIONS 1 1 * * Flies-from Flight Airport Flies-to • Two types may have multiple associations between them.

Editor's Notes

  1. 1