Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment # 5 : Structural and Behavioral Design Patterns [ 4 % ] This assignment relates to the following Course Learning Requirements: CLR 1 -
Assignment #: Structural and Behavioral Design Patterns
This assignment relates to the following Course Learning Requirements:
CLR Implement an objectedoriented program design incorporating the use of best practice design patterns using the JAVA programming language.
Part I:
Proxy Pattern
The current code includes two classes that represent the APIs for Google and AWS services, but only a subset of the methods implemented are required for application. Because we want to expose the application only, the methods that are really required are as follows:
Implement a Proxy named GoogleSpeechTextProxy for the Google API
Implement a Proxy named AWSTranscribeProxy for the AWS API.
Update the CCWorker class accordingly.
Adapter Pattern
We want to make use of the same interface therefor the same method for accessing the two Proxies.
Implement a CCGoogleAdapter and CCAWSAdapter that have the same method although different logic for triggering the closedcaptioning process.
Update the CCWorker class accordingly keep the cc triggering using local methods
Part II:
Observer Pattern
We want to have notifications that can be sent to the Console to simulate an external Event Logging System that may be used for Analytics and Live Monitoring.
Implement Observer pattern being the Recording class, the Observable Subject, and a new Notifier class, the Observer.
The event should be triggered when the Recording is updated with the transcript or result from the closed captioning process and the message generated should include information from the recording itself.
Update the Main class accordingly.
Submission:
Your submission for this assignment should include:
Java code of your final solution.
Report of your observations on the changes you had to do to your code while following the recommended steps. Add snippets of code or screen captures to the report to show intermediate steps.
a Your report should not exceed pages in length.
b Note: This report can be anywhere from to pages depending on
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started