Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Software Architecture & Design 3 2 4 Assignment - 2 : You need to submit: The entire Java code ( as Netbeans or Eclipse project

Software Architecture & Design 324
Assignment-2:
You need to submit:
The entire Java code (as Netbeans or Eclipse project); if your code does not run regardless of any reason, your grade is automatically zero.
Problem Description:
A vehicle company is designing software for the Cruise Control system. Suppose this company has decided to incorporate other companies' hardware products so it can only focus on the software development. In this case, the software needs to access and control the required hardware equipment.
It has been decided that the Cruise Control will at least need to interact with the following hardware equipment:
Cruise Control Handle (with the ability to adjust speed and read product information).
Brake (with the ability to stop cruise and read product information)
Engine (with the ability to adjust Accelerator value and read product information)
Accelerator (with the ability to read product information)
Note: product information = company name + product name
The vehicle company has agreed with a company called "Digital Car" company to manufacture the required hardware equipment. However, since hardware development is expected to take longer than the expected software development, management has decided to simulate the hardware components so that software development and testing can move forward. That is, there are two streams of equipment: real equipment (from Digital Car Company) and the simulated equipment to allow the software development to go forward.
Requirements:
Design the creation of the required objects using the abstract factory design pattern so that the Cruise Control software can work the same way using real or simulated components. This design should be provided as UML class diagram. Note that you should separate Digital Car company equipment from simulated equipment.
Provide your Java implementation.
a. The Java program should test the creation of all objects. Therefore, you need to place the following line in each class constructor:
System.out.println("Created instance of class "+this.getClass().getSimpleName ());
b. The main method should test both the simulated and real hardware object creations.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

6. Explain the power of labels.

Answered: 1 week ago

Question

5. Give examples of variations in contextual rules.

Answered: 1 week ago

Question

f. What stereotypes were reinforced in the commercials?

Answered: 1 week ago