class foronoi.DebugObserver(callback=None)

Listens to debug messages.


callback (function) – By default, the DebugObserver prints the debug message. When a callback function is given, it will pass the debug message as string to the callback function.

update(subject: foronoi.observers.subject.Subject, message: foronoi.observers.message.Message, **kwargs)

Send the updated state of the algorithm to the VoronoiObserver.

  • subject (Algorithm) – The algorithm to observe

  • message (Message) – The message type

  • kwargs (dict) – Keyword arguments that include a payload-parameter of type str