laymon.interfaces

Module Contents

Classes

Monitor() Abstract class to monitor the observers.
Observer() Abstract class to describe and update the state of an observer.
Display() Abstract class to create and update the displays attached to an observer.
ObserverFactory() Abstract class for creating a factory to create new observers with a display attached to them.
class laymon.interfaces.Monitor[source]

Abstract class to monitor the observers. Methods to:

  1. Add observers
  2. Remove observers
  3. Get the list of registered observers
  4. Notify the observers when there is a change in the monitored parameters.
__metaclass__[source]
add_observer(self, observer)[source]
remove_observer(self, observer)[source]
notify_observers(self)[source]
get_registered_observers(self)[source]
class laymon.interfaces.Observer[source]

Abstract class to describe and update the state of an observer.

__metaclass__[source]
_description[source]
update(self, parameters)[source]
get_description(self)[source]
class laymon.interfaces.Display[source]

Abstract class to create and update the displays attached to an observer.

__metaclass__[source]
update_display(self, parameters, display_title)[source]
class laymon.interfaces.ObserverFactory[source]

Abstract class for creating a factory to create new observers with a display attached to them. The display_object stores a display class used to visualize an observer’s parameters/states.

__metaclass__[source]
display_object[source]
create(self, observer, observer_name)[source]