CSE 4361: Software Design Patterns Homework 4 – Java State Pattern and UML State Machine Design (Answered)

$29.99

This downloadable ZIP file covers Java State design pattern implementation within a graphical drawing application. The resource addresses controller state transitions, state machine diagrams, UML class and sequence diagrams, GUI event handling, object-oriented refactoring, software complexity reduction, and application testing.

Original Work ?

Download Details:

  • Name: Homework-4-onrxjd.zip
  • Type: zip
  • Size: 214.95 KB

Category: Tags: , , , , , You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (2 votes)

CSE 4361 Software Design Patterns Homework 4 focuses on applying the State design pattern to an existing Java graphical drawing application. The assignment explores state-dependent controller behavior, state machine modeling, UML class and sequence diagrams, GUI event handling, and object-oriented software refactoring to reduce complexity and improve maintainability.

Assignment Description

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.

Solution Overview

The solution addresses controller state machine modeling, State pattern implementation, and modifications to the existing Java drawing application. It covers updated UML design class and sequence diagrams, state-dependent GUI event processing, pattern-specific code documentation, and application testing screenshots.