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

Software Architecture & Design 324
Assignment-3:
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:
Based on your assigment2 solution, the requirement has changed so that the cruise controller is
missing part speed sensor to control the speed of the shaft.
Therefore, the Cruise Control will now interact with the following hardware equipment:
1) Cruise Control Handle (with the ability to adjust speed and read product information).
2) Brake (with the ability to stop cruise and read product information)
3) Engine (with the ability to adjust Accelerator value and read product information)
4) Speed Sensor (with the ability to read product information)
5) Accelerator (with the ability to read product information)
Note: product information = company name + product name
As previously discussed in assignment2, 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:
1) 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.
2) 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.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!