We want to develop software to manage an epidemic. The software

allows users (who each have a nickname) to specify who they are in contact with. When
a person is contaminated, he reports it on the software, and the people with whom he is in
relationship automatically become contact cases (therefore potentially contaminated). The display
people uses a color (java.awt.Color) and a shape (java.awt.Shape). According to the status of
people, the display is different: a healthy person is displayed with a green circle, a
contact case person with an orange triangle and an infected person with a red triangle.
Propose a structuring of the software, specifying which design pattern(s) you
use. You can make a UML diagram to explain your solution. Write the code
corresponding.

1 answer

Hello, I need help with this exercise, I really have no idea how to combine the Factory method (to create shapes) with the Observer design pattern (to change colors of shapes based on their condition).
Similar Questions
    1. answers icon 2 answers
    1. answers icon 1 answer
  1. 4.Karl’s company uses software that is designed to store, manage, and retrieve data. What type of software does Karl’s
    1. answers icon 1 answer
    1. answers icon 1 answer
more similar questions