Observer Pattern
-
Download
(1KB)
- Licence:
Open Source Free
- OS: Windows ,Linux,Mac OS,BSD,Solaris
- Homepage:
- Date Added: 07/08/2010
- File size: 1KB
- Downloads: 67
Observer Pattern
Bookmark
Observer Pattern Description
- "This is a Python implementation of the observer pattern." Brothersoft Editor: This is a Python implementation of the observer pattern described by Gamma et. al. It defines a one-to many dependency Between objects so that when one object changes state, all its dependents are notified and updated automatically.The example should output: Setting Data 1 = 10 DecimalViewer: Subject Data 1 has data 10 HexViewer: Subject Data 1 has data 0xa Setting Data 2 = 15 HexViewer: Subject Data 2 has data 0xf DecimalViewer: Subject Data 2 has data 15 Setting Data 1 = 3 DecimalViewer: Subject Data 1 has data 3 HexViewer: Subject Data 1 has data 0x3 Setting Data 2 = 5 HexViewer: Subject Data 2 has data 0x5 DecimalViewer: Subject Data 2 has data 5 Detach HexViewer from data1 and data2. Setting Data 1 = 10 DecimalViewer: Subject Data 1 has data 10 Setting Data 2 = 15 DecimalViewer: Subject Data 2 has data 15 . you can
free download
Observer Pattern now.
Observer Pattern Screenshot
Observer Pattern useful links
Observer Pattern
Related Software
Observer Pattern
Keyword
This ,
Python ,
implementation ,
observer ,
pattern. ,
Brothersoft ,
Editor ,
This ,
Python ,
implementation ,
observer ,
pattern ,
described ,
Gamma ,
defines ,
one-to ,
many ,
dependency ,
Between ,
objects ,
that ,
when ,
object ,
changes ,
state ,
dependents ,
notified ,
updated ,
automatically.The ,