Docsity

Refining analysis Relationship, Exams of Object Oriented Analysis and Design

Toggle sidebar
bg1
Object-Oriented Design – Lecture 17
Department of Computer Engineering 2 Sharif University of Technology
Refining Analysis Relationships
Relationships in analysis are converted to implementable design
relationships.
Refining analysis relationships to design relationships involves:
adding navigability;
adding multiplicity to both ends of the association;
adding a role name at both ends of the association, or at least on the
target end of the association;
implementing one-to-one, one-to-many, many-to-one, and many-to-many
associations;
implementing bidirectional associations and association classes;
using structured classifiers for modeling composition.
pf3
pf4

Partial preview of the text

Download Refining analysis Relationship and more Exams Object Oriented Analysis and Design in PDF only on Docsity!

Department of Computer Engineering

Sharif University of Technology

Refining Analysis Relationships

 Relationships in analysis are converted to implementable design

relationships.

 Refining analysis relationships to design relationships involves:

 adding navigability;

 adding multiplicity to both ends of the association;

 adding a role name at both ends of the association, or at least on the

target end of the association;

 implementing one-to-one, one-to-many, many-to-one, and many-to-many

associations;

 implementing bidirectional associations and association classes;

 using structured classifiers for modeling composition.

Department of Computer Engineering

Sharif University of Technology

Refining Analysis Relationships: One-to-One Association  Add navigability to the model; refine into Composition only if the semantics apply; you may also choose to merge the two classes.

Department of Computer Engineering

Sharif University of Technology

Refining Analysis Relationships: One-to-Many Association  There is a collection of objects on the target side:  Use an inbuilt array (most OO languages directly support arrays) - they are generally quite inflexible but are usually fast.  Use a collection class - they are more flexible than inbuilt arrays and are faster than arrays when searching the collection is required (otherwise they are slower).