.. java:import:: ch.epfl.leb.alica AlicaLogger .. java:import:: ch.epfl.leb.alica.interfaces Controller .. java:import:: ch.epfl.leb.alica Laser .. java:import:: java.util Timer .. java:import:: java.util TimerTask ControlWorker ============= .. java:package:: ch.epfl.leb.alica.workers :noindex: .. java:type:: public class ControlWorker extends Timer A Timer which schedules a task that regularly queries the AnalysisWorker for batched output, and passes it on to the controller, then gets the controller's output and passes it on to the laser. :author: Marcel Stefko Constructors ------------ ControlWorker ^^^^^^^^^^^^^ .. java:constructor:: public ControlWorker(AnalysisWorker analysis_worker, Controller controller, Laser laser) :outertype: ControlWorker Initialize the ControlWorker :param analysis_worker: AnalysisWorker which will be queried for output :param controller: Controller to which output of AnalysisWorker is fed :param laser: Laser to which output of Controller is fed Methods ------- getLastControllerOutput ^^^^^^^^^^^^^^^^^^^^^^^ .. java:method:: public double getLastControllerOutput() :outertype: ControlWorker :return: last controller output scheduleExecution ^^^^^^^^^^^^^^^^^ .. java:method:: public void scheduleExecution(long delay_ms, long period_ms) :outertype: ControlWorker The task of this worker will be executed regularly. :param delay_ms: initial delay :param period_ms: period of the task