SlideShare a Scribd company logo
1 of 24
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
Module 2 - Static Use Case Modeling 1
Title of Topic:
Associations, Attributes
Course Code: 20CS501
Course Title: Object Oriented Analysis and Design
Session Number: 2.6
Faculty Name: Ms. P. Anantha Prabha
Academic Year: 2022 - 2023 (Odd Sem)
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
Module 2 - Static Use Case Modeling 2
Module 2 - Static Use Case Modeling
2.1 Use Case Modeling: Modeling Requirements, Components
2.2 Use Case Identification and Description
2.3 Use Case Relationships
Use Case Modeling, Relating Use cases - Include-Extend-
Generalization
Class Diagram-Elaboration, Domain Model
2.5 Finding Conceptual Classes and Description Classes
2.6 Associations, Attributes, Domain Modeling Using Class Diagrams
2.7 Domain Model Refinement, Finding conceptual class Hierarchies-
Aggregation and Composition
CO3 Interpret Use Case relationships in Use Case Modeling
CO4 Identify the object and class relationships for building UML diagrams
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
3
Associations
An association is a relationship between instances of
types that indicates some meaningful and interesting
connection
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
Associations and Attributes
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
5
Useful Associations
• Associations for which knowledge of the relationship
needs to be preserved for some duration.
• Associations derived from the Common Associations
List.
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
6
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.
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
7
Finding Associations
Common Association 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.
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
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.
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
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.
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
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.
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
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.
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
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.
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
Associations and Attributes
Multiplicity defines how many instances of a class A can be associated
with one instance of a class B
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
Associations and Attributes
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
Associations and Attributes
Naming Associations
Name an association based on a TypeName-VerbPhrase-TypeName format
where the verb phrase creates a sequence that is readable and meaningful in
the model context.
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
Associations and Attributes
 An association indicates that the system you are developing stores links
of some kind between the instances of the associated types.
 An association is a diagrammatic method of showing an attribute or pair
of attributes.
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
Associations and Attributes
 An attribute is a logical data value of an object.
 For example, a receipt (which reports the information of a sale)
normally includes a date and time, and management wants to know the
dates and times of sales for a variety of reasons. Consequently, the Sale
conceptual class needs a date and time attribute.
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
Modeling Attribute Quantities and Units
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
Associations and Attributes
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
Associations and Attributes
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
Association and Multiplicity
Association and Multiplicity-
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
Associations and Attributes
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
Associations and Attributes
Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams
Try Yourself

More Related Content

Similar to 2.6 Associations, Attributes.pptx

unit-1modellingconceptsclassmodeling-140929182538-phpapp01.pdf
unit-1modellingconceptsclassmodeling-140929182538-phpapp01.pdfunit-1modellingconceptsclassmodeling-140929182538-phpapp01.pdf
unit-1modellingconceptsclassmodeling-140929182538-phpapp01.pdf
RojaPogul1
 
MC0077 SMU 2013 Fall Session
MC0077 SMU 2013 Fall SessionMC0077 SMU 2013 Fall Session
MC0077 SMU 2013 Fall Session
Narinder Kumar
 

Similar to 2.6 Associations, Attributes.pptx (20)

unit-1modellingconceptsclassmodeling-140929182538-phpapp01.pdf
unit-1modellingconceptsclassmodeling-140929182538-phpapp01.pdfunit-1modellingconceptsclassmodeling-140929182538-phpapp01.pdf
unit-1modellingconceptsclassmodeling-140929182538-phpapp01.pdf
 
MC0077 SMU 2013 Fall Session
MC0077 SMU 2013 Fall SessionMC0077 SMU 2013 Fall Session
MC0077 SMU 2013 Fall Session
 
Architecture and Structure ( ACS) Course.pdf
Architecture and Structure ( ACS) Course.pdfArchitecture and Structure ( ACS) Course.pdf
Architecture and Structure ( ACS) Course.pdf
 
C & C++ Training Institutes in Bangalore
C & C++ Training Institutes in BangaloreC & C++ Training Institutes in Bangalore
C & C++ Training Institutes in Bangalore
 
Chapter 8 ooad
Chapter  8 ooadChapter  8 ooad
Chapter 8 ooad
 
Qlikview Training in Bangalore by myTectra
Qlikview Training in Bangalore by myTectraQlikview Training in Bangalore by myTectra
Qlikview Training in Bangalore by myTectra
 
Qlikview Training in Bangalore by myTectra
Qlikview Training in Bangalore by myTectraQlikview Training in Bangalore by myTectra
Qlikview Training in Bangalore by myTectra
 
Sadcw 7e chapter04_recorded
Sadcw 7e chapter04_recordedSadcw 7e chapter04_recorded
Sadcw 7e chapter04_recorded
 
Sadcw 7e chapter04(1)
Sadcw 7e chapter04(1)Sadcw 7e chapter04(1)
Sadcw 7e chapter04(1)
 
Cis 328Believe Possibilities / snaptutorial.com
Cis 328Believe Possibilities / snaptutorial.comCis 328Believe Possibilities / snaptutorial.com
Cis 328Believe Possibilities / snaptutorial.com
 
Cis 328 Effective Communication - snaptutorial.com
Cis 328  Effective Communication - snaptutorial.comCis 328  Effective Communication - snaptutorial.com
Cis 328 Effective Communication - snaptutorial.com
 
Cis 328 Success Begins / snaptutorial.com
Cis 328 Success Begins / snaptutorial.comCis 328 Success Begins / snaptutorial.com
Cis 328 Success Begins / snaptutorial.com
 
Object Oriented Analysis and Design with UML2 part2
Object Oriented Analysis and Design with UML2 part2Object Oriented Analysis and Design with UML2 part2
Object Oriented Analysis and Design with UML2 part2
 
Cis 328 Education Specialist -snaptutorial.com
Cis 328   Education Specialist -snaptutorial.comCis 328   Education Specialist -snaptutorial.com
Cis 328 Education Specialist -snaptutorial.com
 
cis 328 Education Organization - snaptutorial.com
cis 328  Education Organization - snaptutorial.comcis 328  Education Organization - snaptutorial.com
cis 328 Education Organization - snaptutorial.com
 
Cis 328 Enhance teaching-snaptutorial.com
Cis 328 Enhance teaching-snaptutorial.comCis 328 Enhance teaching-snaptutorial.com
Cis 328 Enhance teaching-snaptutorial.com
 
Cis 328 Exceptional Education / snaptutorial.com
Cis 328   Exceptional Education / snaptutorial.comCis 328   Exceptional Education / snaptutorial.com
Cis 328 Exceptional Education / snaptutorial.com
 
Cis 328 Extraordinary Success/newtonhelp.com
Cis 328 Extraordinary Success/newtonhelp.com  Cis 328 Extraordinary Success/newtonhelp.com
Cis 328 Extraordinary Success/newtonhelp.com
 
Sda 9
Sda   9Sda   9
Sda 9
 
CIS 328 Focus Dreams/newtonhelp.com
CIS 328 Focus Dreams/newtonhelp.comCIS 328 Focus Dreams/newtonhelp.com
CIS 328 Focus Dreams/newtonhelp.com
 

Recently uploaded

Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...
Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...
Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...
drmarathore
 
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
gajnagarg
 
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
gajnagarg
 
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
eeanqy
 
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
ehyxf
 
Minimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptxMinimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptx
balqisyamutia
 
Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...
nirzagarg
 
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
instagramfab782445
 
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
eeanqy
 
Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...
Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...
Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...
ZurliaSoop
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion pills in Kuwait Cytotec pills in Kuwait
 
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
wpkuukw
 
ab-initio-training basics and architecture
ab-initio-training basics and architectureab-initio-training basics and architecture
ab-initio-training basics and architecture
saipriyacoool
 

Recently uploaded (20)

Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...
Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...
Abortion pills in Kuwait 🚚+966505195917 but home delivery available in Kuwait...
 
LANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEK
LANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEKLANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEK
LANDSCAPE ARCHITECTURE PORTFOLIO - MAREK MITACEK
 
Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...
Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...
Just Call Vip call girls Kasganj Escorts ☎️8617370543 Two shot with one girl ...
 
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In fatehgarh [ 7014168258 ] Call Me For Genuine Models...
 
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
 
Furniture & Joinery Details_Designs.pptx
Furniture & Joinery Details_Designs.pptxFurniture & Joinery Details_Designs.pptx
Furniture & Joinery Details_Designs.pptx
 
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
 
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
怎样办理莫纳什大学毕业证(Monash毕业证书)成绩单留信认证
 
Minimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptxMinimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptx
 
Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Sonipat [ 7014168258 ] Call Me For Genuine Models W...
 
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
Abortion pill for sale in Muscat (+918761049707)) Get Cytotec Cash on deliver...
 
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
怎样办理巴斯大学毕业证(Bath毕业证书)成绩单留信认证
 
Independent Escorts Goregaon WhatsApp +91-9930687706, Best Service
Independent Escorts Goregaon WhatsApp +91-9930687706, Best ServiceIndependent Escorts Goregaon WhatsApp +91-9930687706, Best Service
Independent Escorts Goregaon WhatsApp +91-9930687706, Best Service
 
Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...
Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...
Jual Obat Aborsi Bandung ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan ...
 
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
Just Call Vip call girls Fatehpur Escorts ☎️8617370543 Two shot with one girl...
 
Mohanlalganj ! Call Girls in Lucknow - 450+ Call Girl Cash Payment 9548273370...
Mohanlalganj ! Call Girls in Lucknow - 450+ Call Girl Cash Payment 9548273370...Mohanlalganj ! Call Girls in Lucknow - 450+ Call Girl Cash Payment 9548273370...
Mohanlalganj ! Call Girls in Lucknow - 450+ Call Girl Cash Payment 9548273370...
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
 
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
一比一定(购)卡尔顿大学毕业证(CU毕业证)成绩单学位证
 
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
 
ab-initio-training basics and architecture
ab-initio-training basics and architectureab-initio-training basics and architecture
ab-initio-training basics and architecture
 

2.6 Associations, Attributes.pptx

  • 1. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams Module 2 - Static Use Case Modeling 1 Title of Topic: Associations, Attributes Course Code: 20CS501 Course Title: Object Oriented Analysis and Design Session Number: 2.6 Faculty Name: Ms. P. Anantha Prabha Academic Year: 2022 - 2023 (Odd Sem)
  • 2. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams Module 2 - Static Use Case Modeling 2 Module 2 - Static Use Case Modeling 2.1 Use Case Modeling: Modeling Requirements, Components 2.2 Use Case Identification and Description 2.3 Use Case Relationships Use Case Modeling, Relating Use cases - Include-Extend- Generalization Class Diagram-Elaboration, Domain Model 2.5 Finding Conceptual Classes and Description Classes 2.6 Associations, Attributes, Domain Modeling Using Class Diagrams 2.7 Domain Model Refinement, Finding conceptual class Hierarchies- Aggregation and Composition CO3 Interpret Use Case relationships in Use Case Modeling CO4 Identify the object and class relationships for building UML diagrams
  • 3. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams 3 Associations An association is a relationship between instances of types that indicates some meaningful and interesting connection
  • 4. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams Associations and Attributes
  • 5. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams 5 Useful Associations • Associations for which knowledge of the relationship needs to be preserved for some duration. • Associations derived from the Common Associations List.
  • 6. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams 6 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.
  • 7. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams 7 Finding Associations Common Association 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. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams 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. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams 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. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams 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. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams 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. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams 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. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams Associations and Attributes Multiplicity defines how many instances of a class A can be associated with one instance of a class B
  • 14. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams Associations and Attributes
  • 15. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams Associations and Attributes Naming Associations Name an association based on a TypeName-VerbPhrase-TypeName format where the verb phrase creates a sequence that is readable and meaningful in the model context.
  • 16. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams Associations and Attributes  An association indicates that the system you are developing stores links of some kind between the instances of the associated types.  An association is a diagrammatic method of showing an attribute or pair of attributes.
  • 17. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams Associations and Attributes  An attribute is a logical data value of an object.  For example, a receipt (which reports the information of a sale) normally includes a date and time, and management wants to know the dates and times of sales for a variety of reasons. Consequently, the Sale conceptual class needs a date and time attribute.
  • 18. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams Modeling Attribute Quantities and Units
  • 19. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams Associations and Attributes
  • 20. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams Associations and Attributes
  • 21. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams Association and Multiplicity Association and Multiplicity-
  • 22. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams Associations and Attributes
  • 23. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams Associations and Attributes
  • 24. Session 6 – Associations, Attributes, Domain Modeling Using Class Diagrams Try Yourself

Editor's Notes

  1. 4