This module contains the Feedback class, which is the baseclass of all feedbacks.
Base class for all feedbacks.
This class provides methods which are called by the FeedbackController on certain events. Override the methods as needed.
As a bare minimum you should override the on_play method in your derived class to do anything useful.
To get the data from control signals, you can use the “_data” variable in your feedback which will always hold the latest control signal.
To get the data from the interaction signals, you can use the variable names just as sent by the GUI.
This class provides the send_parallel method which you can use to send arbitrary data to the parallel port. You don’t have to override this method in your feedback.
This method is called after the FeedbackController received a control signal. The FeedbackController parses the signal, extracts the values stores the resulting tuple in the object-variable “data” and calls this method.
Override this method if you want to react on control events.
This method is called right after the feedback object was loaded by the FeedbackController.
Override this method to initialize everything you need before the feedback starts.
This method is called after the FeedbackController received a interaction signal. The FeedbackController parses the signal, extracts the variable-value pairs, stores them as object-variables in your feedback and calls this method.
If the FeedbackController detects a “play”, “pause” or “quit” signal, it calls the appropriate on_-method after this method has returned.
If the FeedbackController detects an “init” signal, it calls “on_init” before “on_interaction_event”!
Override this method if you want to react on interaction events.
This method is called by the FeedbackController when it received a “Pause” event via interaction signal.
Override this method to pause your feedback.
This method is called by the FeedbackController when it received a “Play” event via interaction signal.
Override this method to actually start your feedback.
This Method is called just before the FeedbackController will destroy the feedback object. The FeedbackController will not destroy the feedback object until this method has returned.
Override this method to cleanup everything as needed or save information before the object gets destroyed.
This method is called by the FeedbackController when it received a “Stop” event.
Override this method to stop your feedback. It should be possible to start again when receiving the on_start event.
Module author: Bastian Venthur <venthur@cs.tu-berlin.de>