3.3.1. Event Handling

Event handling is a widely used standard technique in software development. And that’s how it found its way into MLPro. The mechanism is inherited by higher classes in the form of the property class EventHandler. This class allows event handler methods to be registered and events to be triggered, which in turn call registered handlers. An object of type Event is passed to each handler. This contains further information about the context of the event.

The event handling functionality is used extensively in MLPro. A large number of higher classes use this mechanism. Based on this, even an event-oriented adaptation mechanism is cultivated in Layer 4 - Machine Learning.

Cross Reference