Represents the Subject to the observers. This is the minimum needed by observers to get access to the data provided by the Subject class. More...
Public Member Functions | |
uint | FetchNumber () |
Return the current value from the Subject. | |
Represents the Subject to the observers. This is the minimum needed by observers to get access to the data provided by the Subject class.
An interface is used to represent the Subject to the observers so the observers do not have too much knowledge about the Subject, allowing more freedom to change the Subject class implementation without affecting observers. This interface would naturally have to change if the observers needed more data from the Subject.
Definition at line 84 of file ObserverSubject_NumberProducer.cs.
uint FetchNumber | ( | ) |
Return the current value from the Subject.
Implemented in ObserverSubject_NumberProducer.
Referenced by ObserverForDecimal.NumberChanged(), ObserverForHexaDecimal.NumberChanged(), and ObserverForBinary.NumberChanged().