observer pattern aleksandar kartelj. ideja not long ago my clutch gave out, so i had my jeep towed...
DESCRIPTION
Primene u stvarnom životu Newsletter, grupe Pretplata na časopis Obaveštenja javnih službi Sudski pozivi itd...TRANSCRIPT
![Page 1: Observer pattern Aleksandar Kartelj. Ideja Not long ago my clutch gave out, so I had my Jeep towed to a local dealership. I didn't know anybody at the](https://reader036.vdocument.in/reader036/viewer/2022081900/5a4d1ad57f8b9ab059972f06/html5/thumbnails/1.jpg)
Observer pattern
Aleksandar Kartelj
![Page 2: Observer pattern Aleksandar Kartelj. Ideja Not long ago my clutch gave out, so I had my Jeep towed to a local dealership. I didn't know anybody at the](https://reader036.vdocument.in/reader036/viewer/2022081900/5a4d1ad57f8b9ab059972f06/html5/thumbnails/2.jpg)
Ideja• Not long ago my clutch gave out, so I had my Jeep
towed to a local dealership. I didn't know anybody at the dealership, and none of them knew me, so I gave them my telephone number so they could notify me with an estimate. That arrangement worked so well we did the same thing when the work was finished. Because this all turned out perfectly for me, I suspect the service department at the dealership employs the same pattern with most of its customers.
![Page 3: Observer pattern Aleksandar Kartelj. Ideja Not long ago my clutch gave out, so I had my Jeep towed to a local dealership. I didn't know anybody at the](https://reader036.vdocument.in/reader036/viewer/2022081900/5a4d1ad57f8b9ab059972f06/html5/thumbnails/3.jpg)
Primene u stvarnom životu
• Newsletter, grupe• Pretplata na časopis• Obaveštenja javnih službi• Sudski pozivi itd...
![Page 4: Observer pattern Aleksandar Kartelj. Ideja Not long ago my clutch gave out, so I had my Jeep towed to a local dealership. I didn't know anybody at the](https://reader036.vdocument.in/reader036/viewer/2022081900/5a4d1ad57f8b9ab059972f06/html5/thumbnails/4.jpg)
UML model Observera
![Page 5: Observer pattern Aleksandar Kartelj. Ideja Not long ago my clutch gave out, so I had my Jeep towed to a local dealership. I didn't know anybody at the](https://reader036.vdocument.in/reader036/viewer/2022081900/5a4d1ad57f8b9ab059972f06/html5/thumbnails/5.jpg)
Primene u programiranju
1. MVC je baziran na Observeru – Smalltalk2. Document View Architecture – skoro
ekvivalentno MVC-u (Ažuriranje promena u različitim pogledima istog dokumenta)
![Page 6: Observer pattern Aleksandar Kartelj. Ideja Not long ago my clutch gave out, so I had my Jeep towed to a local dealership. I didn't know anybody at the](https://reader036.vdocument.in/reader036/viewer/2022081900/5a4d1ad57f8b9ab059972f06/html5/thumbnails/6.jpg)
Observer u javi
• Observer interfejs– update
• Observable klasa– addObserver– notifyObservers
![Page 7: Observer pattern Aleksandar Kartelj. Ideja Not long ago my clutch gave out, so I had my Jeep towed to a local dealership. I didn't know anybody at the](https://reader036.vdocument.in/reader036/viewer/2022081900/5a4d1ad57f8b9ab059972f06/html5/thumbnails/7.jpg)
Jedna promena – više zainteresovanih
• Primer sa bojenjem polja