CSE 4361: SOFTWARE DESIGN PATTERNS Homework 4 solved

$35.00

Category: You will receive a download link of the .ZIP file upon Payment

Description

5/5 - (1 vote)

1 Introduction
This individual homework requires the student to modify homework 1 design and implementation to apply the
state pattern. In homework 1, a variable had been used to keep track of the state of the controller, and respond
to the GUI events according to the state. This approach results in high complexity, especially when there are
many states and many triggering events. This homework requires the student to apply the state pattern to
reduce the complexity.
2 What Needs to be Done and Submit?
This homework requires the student to do the following:
1. Produce a state machine to describe the state-dependent behavior of the controller.
2. Apply the state pattern to produce a design for above state-dependent behavior. That is, apply the state
pattern to convert the state machine into a UML class diagram.
3. Modify homework 1 design class diagram to include the state pattern design produced above. Use UML
stereotype or UML note to show the state pattern.
4. Modify homework 1 design sequence diagram (DSD) to include application of the state pattern. Use UML
stereotype or UML note to show the state pattern.
5. Modify homework 1 Java code to apply the state pattern. Provide in-code comments to show the state
pattern.
6. Compile, run and test your software. Produce and submit screen shots to show the working of your
software.
3 How To Submit
To be announced by the TA before the deadline.
1