posted 14 years ago
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
SCEA, SCJD, SCDJWS, SCWCD, SCJP