Creation of an Object Model using UML Conventions

I have the problem statement to make an Object Model for.

Problem Statement: Every vehicle has an engine and a gearbox. A gearbox is composed of pulleys working according to predefined gear ratios. Cars have smaller engines with 4-6 gears while Sports Utility Vehicles (SUVs) have bigger engines with 4-8 gears. Heavy Duty Vehicles (HDVs) on the other hand, are designed to transport cargo thus have huge engines with 8-16 gears. The larger the numbers of gears the larger will the number of pulleys and vice versa.

Well, I have done all the Object Model, but there are three things that are confusing me:

A) The part where it says "A gearbox is composed of pulleys working according to predefined gear ratios", do we need to

~~~Case 1: Take gear and pulleys as an object and make the relation of composition from object gearbox to gear and pulleys

~~~Case 2: Take gear and pulleys as an attributes to the object gearbox

~~~If it's the Case 1 or Case 2, how are we gonna show the predefined ratio of gears for every vehicle?

B) The part where it says "Cars have smaller engines with 4-6 gears.....Sports Utility Vehicles (SUVs) have bigger engines with 4-8 gears.....Heavy Duty Vehicles (HDVs) have huge engines with 8-16 gears". So, how do we show the number of gears to all three types of vehicles? If according to Confusion (A) we chose the Case 1 and have made object gear, would we need to connect it to all the three objects Cars, SUVs and HDVs making Association among them OR if we chose the Case 2 from Confusion (A) then would we need to show the no of gears as an attributes in all the three objects Cars, SUVs and HDVs?

C) The part where it says "The larger the numbers of gears the larger will the number of pulleys and vice versa", how should we show this relation in Object Model?

Kindly, anyone help me in this. I have been using my mind since all day and did not be able to finalize any ideas. Thanks in advanced.
Last edited on
Case 1 -- yes. But not pulleys, just pulley.

Use the multiplicity notation.
http://www.uml-diagrams.org/multiplicity.html

It's good that UML is still being taught.
Case 1 -- yes. But not pulleys, just pulley.

Use the multiplicity notation.
http://www.uml-diagrams.org/multiplicity.html

It's good that UML is still being taught.


What about the Part B and Part C? BTW thanks for the reply.
You show it with the multiplicity notation.
You show it with the multiplicity notation.


Brother, really thanks a lot, I was so puzzled about this problem statement. Well, I am new to Object Modeling with UML, so thats why needed some help, thanks again :)
Topic archived. No new replies allowed.