Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am so confused can you explain ex1 what exactly I need to do Assignment 2 Smart Home Controller In this assignment, you will continue

I am so confused can you explain ex1 what exactly I need to do

image text in transcribed
Assignment 2 Smart Home Controller In this assignment, you will continue working on the Smart Home Controller challenge playing the role of "Smart Builders", i.e., a bunch of developers who develop custom smart homes by putting together various components. You will now face three challenges: . Adapting an Old Sensor. You are given a temperature sensor driver that does not satisfy the Simple Smart Device Collaboration Standard (SSDCS). You will need to use the adapter pattern so that you bring it up to SSDCS standards. Adapting a Sensor with inverted control. You are also given a temperature sensor that not only does not support SSDCS, but it generates messages in response to temperature events, following the observer pattern. You will need to combine observer and adapter pattern to use this new sensor in your project. A Customizable Furnace. You are building your own family of SSDCS-compliant furnaces with various extra's and components. You will need to apply the decorator pattern in order to make sure that the furnace always initializes the appropriate components when it is turned on. Recall: Sensors, Controllers and Actuators of various vendors are able to work together through the use of Interfaces. Specifically, a consortium of smart home vendors, called "/TEC3030 Smart Home Consortium" worked together to produce the Simple Smart Device Collaboration Standard (SSDCS) in form of a set of Java Interfaces. The Interfaces are in Standards.jar and the JavaDoc- generated Documentation can be found in links.txt file. The following file is a driver for testing out your various designs: Main.java, a test bed where various sensors can be created and controlled/tested. For this assignment you will need to complete the following exercises: Exercise 1 (20%) OldTemp Inc. is a company that was developing sensors before SSDCS existed. You need to use one of their sensors OldTempSensor which obviously does not comply with SSDCS. The company offers you OldTempSensorDriver.jar. You will also need OldTempSensorDevice.jar that simulates their hardware. You can find JavaDoc for both driver and device in the link.txt file. Use the adapter pattern to use OldTempSensor in your integration project so that it complies with SSDCS. Name your Adapter OldTempSensorAdapter

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions