Observable object. More...
Public Member Functions | |
void | attachObserver (Observer obs) throws ExceptionObserver |
Adds a new Observer. More... | |
void | detachObserver (Observer obs) throws ExceptionObserver |
Detachs an Observer. More... | |
void | lock () |
Locks the object. More... | |
void | unlock () |
Unlocks the object. More... | |
boolean | isLocked () |
Is the object locked. More... | |
Observable object.
void cogitant.base.ObservableObject.attachObserver | ( | Observer | obs | ) | throws ExceptionObserver |
Adds a new Observer.
void cogitant.base.ObservableObject.detachObserver | ( | Observer | obs | ) | throws ExceptionObserver |
Detachs an Observer.
boolean cogitant.base.ObservableObject.isLocked | ( | ) |
Is the object locked.
void cogitant.base.ObservableObject.lock | ( | ) |
Locks the object.
Observers cannot be notified when the ObservableObject is not locked. lock() creates data (depending on the implementation) allowing to notify observers.
void cogitant.base.ObservableObject.unlock | ( | ) |
Unlocks the object.