Package elisa :: Package core :: Package observers :: Module observable :: Class Observable
[hide private]
[frames] | no frames]

Class Observable

source code


Observable objects can be observed by multiple elisa.core.observers.observer.Observer instances, each of them getting notified of any changes occuring to the former.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
add_observer(self, observer)
Attach an observer which will then be notified of all the changes applied to the observable.
source code
 
remove_observer(self, observer)
Detach an observer which will not be notified anymore of changes applied to the observable.
source code
 
__setattr__(self, key, new_value)
x.__setattr__('name', value) <==> x.name = value
source code
 
_send_message_to_observers(self, message, *args) source code

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __str__

Class Variables [hide private]
  _observers = []

Inherited from extern.log.log.Loggable: logCategory

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: log.Loggable.__init__

add_observer(self, observer)

source code 
Attach an observer which will then be notified of all the changes applied to the observable.
Parameters:

remove_observer(self, observer)

source code 
Detach an observer which will not be notified anymore of changes applied to the observable.
Parameters:

__setattr__(self, key, new_value)

source code 
x.__setattr__('name', value) <==> x.name = value
Overrides: object.__setattr__
(inherited documentation)