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.pdfRojaPogul1
 
MC0077 SMU 2013 Fall Session
MC0077 SMU 2013 Fall SessionMC0077 SMU 2013 Fall Session
MC0077 SMU 2013 Fall SessionNarinder Kumar
 
Sadcw 7e chapter04_recorded
Sadcw 7e chapter04_recordedSadcw 7e chapter04_recorded
Sadcw 7e chapter04_recordedLamineKaba6
 
Sadcw 7e chapter04(1)
Sadcw 7e chapter04(1)Sadcw 7e chapter04(1)
Sadcw 7e chapter04(1)LamineKaba6
 
Cis 328Believe Possibilities / snaptutorial.com
Cis 328Believe Possibilities / snaptutorial.comCis 328Believe Possibilities / snaptutorial.com
Cis 328Believe Possibilities / snaptutorial.comStokesCope11
 
Cis 328 Effective Communication - snaptutorial.com
Cis 328  Effective Communication - snaptutorial.comCis 328  Effective Communication - snaptutorial.com
Cis 328 Effective Communication - snaptutorial.comHarrisGeorg11
 
Cis 328 Success Begins / snaptutorial.com
Cis 328 Success Begins / snaptutorial.comCis 328 Success Begins / snaptutorial.com
Cis 328 Success Begins / snaptutorial.comRobinson069
 
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 part2Haitham Raik
 
Cis 328 Education Specialist -snaptutorial.com
Cis 328   Education Specialist -snaptutorial.comCis 328   Education Specialist -snaptutorial.com
Cis 328 Education Specialist -snaptutorial.comDavisMurphyC36
 
cis 328 Education Organization - snaptutorial.com
cis 328  Education Organization - snaptutorial.comcis 328  Education Organization - snaptutorial.com
cis 328 Education Organization - snaptutorial.comdonaldzs180
 
Cis 328 Enhance teaching-snaptutorial.com
Cis 328 Enhance teaching-snaptutorial.comCis 328 Enhance teaching-snaptutorial.com
Cis 328 Enhance teaching-snaptutorial.comrobertleew8
 
Cis 328 Exceptional Education / snaptutorial.com
Cis 328   Exceptional Education / snaptutorial.comCis 328   Exceptional Education / snaptutorial.com
Cis 328 Exceptional Education / snaptutorial.comBaileya45
 
Cis 328 Extraordinary Success/newtonhelp.com
Cis 328 Extraordinary Success/newtonhelp.com  Cis 328 Extraordinary Success/newtonhelp.com
Cis 328 Extraordinary Success/newtonhelp.com amaranthbeg145
 
CIS 328 Focus Dreams/newtonhelp.com
CIS 328 Focus Dreams/newtonhelp.comCIS 328 Focus Dreams/newtonhelp.com
CIS 328 Focus Dreams/newtonhelp.combellflower84
 

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

专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degreeyuu sss
 
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCRdollysharma2066
 
Design principles on typography in design
Design principles on typography in designDesign principles on typography in design
Design principles on typography in designnooreen17
 
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
PORTAFOLIO   2024_  ANASTASIYA  KUDINOVAPORTAFOLIO   2024_  ANASTASIYA  KUDINOVA
PORTAFOLIO 2024_ ANASTASIYA KUDINOVAAnastasiya Kudinova
 
办理学位证(NUS证书)新加坡国立大学毕业证成绩单原版一比一
办理学位证(NUS证书)新加坡国立大学毕业证成绩单原版一比一办理学位证(NUS证书)新加坡国立大学毕业证成绩单原版一比一
办理学位证(NUS证书)新加坡国立大学毕业证成绩单原版一比一Fi L
 
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...Amil baba
 
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一diploma 1
 
Mookuthi is an artisanal nose ornament brand based in Madras.
Mookuthi is an artisanal nose ornament brand based in Madras.Mookuthi is an artisanal nose ornament brand based in Madras.
Mookuthi is an artisanal nose ornament brand based in Madras.Mookuthi
 
Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)
Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)
Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)jennyeacort
 
Untitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxUntitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxmapanig881
 
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一Fi sss
 
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改yuu sss
 
Introduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptxIntroduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptxnewslab143
 
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一F dds
 
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...katerynaivanenko1
 
ARt app | UX Case Study
ARt app | UX Case StudyARt app | UX Case Study
ARt app | UX Case StudySophia Viganò
 
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一lvtagr7
 
Call Girls Meghani Nagar 7397865700 Independent Call Girls
Call Girls Meghani Nagar 7397865700  Independent Call GirlsCall Girls Meghani Nagar 7397865700  Independent Call Girls
Call Girls Meghani Nagar 7397865700 Independent Call Girlsssuser7cb4ff
 
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts ServiceCall Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Servicejennyeacort
 

Recently uploaded (20)

专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
专业一比一美国亚利桑那大学毕业证成绩单pdf电子版制作修改#真实工艺展示#真实防伪#diploma#degree
 
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
8377877756 Full Enjoy @24/7 Call Girls in Nirman Vihar Delhi NCR
 
Design principles on typography in design
Design principles on typography in designDesign principles on typography in design
Design principles on typography in design
 
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
PORTAFOLIO   2024_  ANASTASIYA  KUDINOVAPORTAFOLIO   2024_  ANASTASIYA  KUDINOVA
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
 
办理学位证(NUS证书)新加坡国立大学毕业证成绩单原版一比一
办理学位证(NUS证书)新加坡国立大学毕业证成绩单原版一比一办理学位证(NUS证书)新加坡国立大学毕业证成绩单原版一比一
办理学位证(NUS证书)新加坡国立大学毕业证成绩单原版一比一
 
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...
NO1 Famous Amil Baba In Karachi Kala Jadu In Karachi Amil baba In Karachi Add...
 
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
 
Mookuthi is an artisanal nose ornament brand based in Madras.
Mookuthi is an artisanal nose ornament brand based in Madras.Mookuthi is an artisanal nose ornament brand based in Madras.
Mookuthi is an artisanal nose ornament brand based in Madras.
 
Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)
Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)
Call Us ✡️97111⇛47426⇛Call In girls Vasant Vihar༒(Delhi)
 
Untitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxUntitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptx
 
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
 
Cheap Rate ➥8448380779 ▻Call Girls In Iffco Chowk Gurgaon
Cheap Rate ➥8448380779 ▻Call Girls In Iffco Chowk GurgaonCheap Rate ➥8448380779 ▻Call Girls In Iffco Chowk Gurgaon
Cheap Rate ➥8448380779 ▻Call Girls In Iffco Chowk Gurgaon
 
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改
1比1办理美国北卡罗莱纳州立大学毕业证成绩单pdf电子版制作修改
 
Introduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptxIntroduction-to-Canva-and-Graphic-Design-Basics.pptx
Introduction-to-Canva-and-Graphic-Design-Basics.pptx
 
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
 
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
 
ARt app | UX Case Study
ARt app | UX Case StudyARt app | UX Case Study
ARt app | UX Case Study
 
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
 
Call Girls Meghani Nagar 7397865700 Independent Call Girls
Call Girls Meghani Nagar 7397865700  Independent Call GirlsCall Girls Meghani Nagar 7397865700  Independent Call Girls
Call Girls Meghani Nagar 7397865700 Independent Call Girls
 
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts ServiceCall Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
Call Girls in Ashok Nagar Delhi ✡️9711147426✡️ Escorts Service
 

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