Quick links: Examples - Files.
Classes: Hierarchy - Index - List - Members.
Packages: Index - base - jni.

Public Member Functions | List of all members
cogitant.base.ObservableObject Interface Reference

Observable object. More...

+ Inheritance diagram for cogitant.base.ObservableObject:

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...
 

Detailed Description

Observable object.

Member Function Documentation

◆ attachObserver()

void cogitant.base.ObservableObject.attachObserver ( Observer  obs) throws ExceptionObserver

Adds a new Observer.

◆ detachObserver()

void cogitant.base.ObservableObject.detachObserver ( Observer  obs) throws ExceptionObserver

Detachs an Observer.

◆ isLocked()

boolean cogitant.base.ObservableObject.isLocked ( )

Is the object locked.

◆ lock()

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.

◆ unlock()

void cogitant.base.ObservableObject.unlock ( )

Unlocks the object.