campy.util.observable module

File: observable.h

This file defines an abstract superclass named <code>Observable</code> that allows objects to store lists of observers, which are other objects that are notified when some part of the state of the observable object changes. This is an example of the classic Observer/Observable design pattern.

class campy.util.observable.Observable[source]

Bases: object

add_observer(observer)[source]
notify_observers(*args, **kwargs)[source]
remove_observer(observer)[source]
class campy.util.observable.Observer[source]

Bases: object

update(observed, *args, **kwargs)[source]