Implementation of the ObserverSubject_NumberProducer class as well as the declarations of the IObserverNumberChanged, IEventNotifications, and INumberProducer interfaces as used in the Observer Pattern. More...
Go to the source code of this file.
Classes | |
class | IObserverNumberChanged |
Represents an observer to the Subject class. More... | |
class | IEventNotifications |
Represents a Subject that takes observers implementing the IObserverNumberChanged interface. More... | |
class | INumberProducer |
Represents the Subject to the observers. More... | |
class | ObserverSubject_NumberProducer |
Represents the Subject to be observed; in this case, a class that contains a single number that is updated with a call to the Update() method. More... | |
Namespaces | |
namespace | DesignPatternExamples_python |
The DesignPatternExamples_python package, containing 20 examples of design patterns, each in their own namespace. | |
namespace | DesignPatternExamples_python.observer |
namespace | DesignPatternExamples_python.observer.observersubject_numberproducer |
Implementation of the ObserverSubject_NumberProducer class as well as the declarations of the IObserverNumberChanged, IEventNotifications, and INumberProducer interfaces as used in the Observer Pattern.
Definition in file observersubject_numberproducer.py.