• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Aggregation in Class Diagram

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All:
I just started working on the class diagram for Dreamcar assignment.
Is there any Aggregation relationship among the entities from BDM?
I have searched the definition of Aggregation - There is a "whole-part" relationship between two objects.
For example, an enterprise contains employees.
But I didn't see any Aggregation relationship among the entities from Dreamcar BDM.
Do I miss something?
How do you guys think about this?

Best,

Chris
 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A Business Domain Model, as the name suggests, describes how a business functions. Your class diagram,.as part of the Design Model, describes the software implementation. The Business Architect, or whoever else produced the Business Domain Model, probably doesn't care about the exact semantics of the business-employee relationship, so they left it off their diagram.
 
Chih-Wei Lee
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After rethinking the BDM, I have found there should be a aggregation relationship between CarModel and Brake Discs, Brake Pads and Suspension. Moreover, the multiplicity between CarModel and these parts is Many-to-Many, which means one type of brake discs can be placed on multiple car model and a car model can have different type of brake discs (front and rare).
It turns out my CarModel has a list of Brake Discs, Brake Pads and Suspension respectively.
The problem with this design is if there is new part added to system, I will need to add another attribute on CarModel class.
How do you guys design the relationship between CarModel and Brake Discs, Brake Pads and Suspension?

Best,

Chris
 
Amateurs built google. Professionals built the titanic. We can't find the guy that built this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic