1 / 16

Observer Pattern

Observer Pattern. Weather display application. WeatherData Class. First attempt!. Issues in 1 st attempt!. Observer Pattern . Definition .

nasya
Télécharger la présentation

Observer Pattern

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Observer Pattern

  2. Weather display application

  3. WeatherData Class

  4. First attempt!

  5. Issues in 1st attempt!

  6. Observer Pattern 

  7. Definition  Observer Pattern defines a one-to-many dependency between objects so that when one object change state, all of its dependents are notified updated automatically.

  8. Implementing Weather Station

  9. Implementing Subject Interface

  10. Building Display Elements

  11. Implementing Main Method

  12. Using Java Built-in Patterns

  13. Reworking CurrentConditionsDisplay

More Related