Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Observer pattern: Draw a class diagram for a weatherStation which can sense temperature and send out notification to public. If a user register for the
Observer pattern: Draw a class diagram for a weatherStation which can sense temperature and send out notification to public. If a user register for the weatherStation.com, he/she will be notified by the weatherStation and he/she can also know the temperature. a) Draw a class diagram using observer pattern. b) Draw a sequence diagram (bonus 5 pts). c) Write a pseudo class in java. You can ignore the detail implementation but your code should indicate the relations. Observer pattern: Draw a class diagram for a weatherStation which can sense temperature and send out notification to public. If a user register for the weatherStation.com, he/she will be notified by the weatherStation and he/she can also know the temperature. a) Draw a class diagram using observer pattern. b) Draw a sequence diagram (bonus 5 pts). c) Write a pseudo class in java. You can ignore the detail implementation but your code should indicate the relations
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