Question

In: Computer Science

Consider the classes involved when modeling a bicycle and all its parts. Draw a domain model...

Consider the classes involved when modeling a bicycle and all its parts. Draw a domain model class diagram that shows the whole-part relationships involved, including multiplicity. Which types of whole-part relationships are involved?

Solutions

Expert Solution

Solution:

step: 1 of 2

Domain model class diagram:

Domain model class diagram is that the class exhibits about the objects in the problem domain.

• The domain class contains the attributes and associations.

Whole-part:

Whole-part relationship is the association between the classes in which one class act as a part or component for another class.

• For example, “bicycle€ is made up of parts such as body, wheels, breaking mechanism, and steering mechanism.

Notation used for whole-part relationship:

• The diamond shape in the diagram represents that the classes are divided into subclasses and it shows the whole-part relationship between the classes.

Domain model class diagram:

Consider that the following domain model class diagram uses the whole-part relationship to model the biycle and its parts:

In the above diagram,

• The “bicycle€ is the superclass and it is further divided into five classes.

• The diamond shape in the diagram represents that the superclass is “bicycle€ and it is further subdivided into classes such as bicycleFrame, bicycleBody, Wheels, and exteriror decorations.

• The superclass bicycle has its own attributes such as ProductDeveloper, year, and modelOfCar.

o The subclass bicycleFrame has its own attributes such as sizeOfFrame and specifications.

o The subclass BicycleBody has its own attributes such as no.of pedals, crossbar, seat post, no

of tires.

o The subclass wheels has its own attributes such as numberOfWheels.

o The subclass ExteriorDecoration has its own attributes such as colorOfbicycle and type of bicycle.

• Additionally the multiplicity constraint for all the classes are “1†because the frame, body, exterior decoration are one except the class wheels.

• This is because the bicycle contains four wheels so the multiplicity constraint is “4†for “wheelsâ€.

step: 2 of 2

Aggregation whole-part relationship:

In the above domain model diagram, the type of whole-part relationship involved in the diagram is aggregation.

• Because, the “bicycle€ is the individual component and its parts are defined separately as bicycleFrame, bicycleBody, Wheels, and exteriorDecoration.

_____________________

Happy learning

Give upvote!!


Related Solutions

DRAW the negative feedback involved with thermoregulation. Be sure to explain all parts of the feedback...
DRAW the negative feedback involved with thermoregulation. Be sure to explain all parts of the feedback loop as well as why it is considered negative instead of positive.
PART 1 : Draw the nephron and label all its parts, be sure to include associated...
PART 1 : Draw the nephron and label all its parts, be sure to include associated vasculature. PART 2: Also indicate the following: Indicate in your drawing, above, the major substances resorbed or secreted along each part of the nephron (YOU MUST INCLUDE, AT MINIMUM: SODIUM, WATER, CALCIUM, GLUCOSE, POTASSIUM, CHLORIDE, BICARBONATE, PROTONS) Indicate (either in your drawing or as text, below) the hormones that regulate tubular reabsorption, also indicate their action and the site of action (target) PART 3:...
Draw the graph of all of the hormones involved in the female menstrual cycle. Using this...
Draw the graph of all of the hormones involved in the female menstrual cycle. Using this graph, describe what is occurring during the ovarian cycle and the uterine (menstrual cycle). Some things to consider in your description include
For each of the following separate parts, you are required to draw a graph. (a) Consider...
For each of the following separate parts, you are required to draw a graph. (a) Consider the market for oil. Suppose the government provides subsidies for companies to use renewable energies. Draw a graph to show how the price elasticity of demand for oil will change. (b) A country produces blueberry pies and pumpkin pies. Suppose a disease occurs, which significantly reduces the farm yield of blueberries. The disease does not affect the production of pumpkins. Draw a graph to...
Ace Bicycle produces bicycles and manufactures all parts internally. Ace has received an offer from an...
Ace Bicycle produces bicycles and manufactures all parts internally. Ace has received an offer from an outside vendor to supply all of the chains Ace requires at $8.20 per chain. Ace’s expected production for the year is 10,000 units. The following information relates to chain production: Variable Costs: $7.50/unit, $75,000 total Machine Rent: $5000 Other Fixed Costs: $30,000 Total Costs: $110,000 Suppose that if Ace buys the chains from the outside vendor, the factory where Ace used to make the...
Consider your work environment, domain of interest, or the world around you, and discuss when it...
Consider your work environment, domain of interest, or the world around you, and discuss when it might be more appropriate to use the mean, median, or mode for measures of central tendency.
Consider rider on a typical bicycle pedalling up a hill. Specifically, the case when the cyclist...
Consider rider on a typical bicycle pedalling up a hill. Specifically, the case when the cyclist is using their body weight alone to apply the pedalling force. Draw a diagram of the situation that you can analyse the system and answer the following questions: a) Does the mass of the rider affect the acceleration of the bike (and rider) up the hill? b) Is there an optimum ratio from pedal crank radius to rear wheel (including the chain drive ratio)...
List, label, graph, define, and discuss ALL the parts of the most important model in all...
List, label, graph, define, and discuss ALL the parts of the most important model in all of economics
Consider Gordon’s model of common property resources. Draw a fully labelled graph of the Gordon model...
Consider Gordon’s model of common property resources. Draw a fully labelled graph of the Gordon model Put these in order, low to high: Level of effort that will lead to extinction of the resource Level of effort that will produce the maximum sustainable yield Optimal level of effort that will maximize the value of the resource Open access/common property level of effort Why would an environmentally conscious producer overuse a common property resource? Relate your answer to the graph from...
The western region of Leisureland can, if it devotes all its resources to bicycle production, produce...
The western region of Leisureland can, if it devotes all its resources to bicycle production, produce 100 bicycles per month. Alternatively, it could devote all its resources to bowling balls and produce 400 per month—or it could produce any combination of bicycles and bowling balls lying on a straight line between these two extremes The eastern region of Leisureland can, if it devotes all its resources to bicycle production, produce 400 bicycles per month. Alternatively, it could devote all its...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT