Coordinator

public class Coordinator

Coordinates workhorses of the analysis.

Author:Marcel Stefko

Constructors

Coordinator

public Coordinator(Studio studio, Analyzer analyzer, Controller controller, Laser laser, ImagingMode imaging_mode, int controller_tick_rate_ms, Roi ROI, boolean headless)

Initialize the coordinator

Parameters:
  • studio – MM studio
  • analyzer
  • controller
  • laser
  • imaging_mode
  • controller_tick_rate_ms
  • ROI – roi for analyzer

Methods

dispose

public void dispose()

Clear windows opened by analyzers and controllers.

getAnalyzerStatusPanel

public AnalyzerStatusPanel getAnalyzerStatusPanel()
Returns:status panel of associated analyzer

getControllerStatusPanel

public ControllerStatusPanel getControllerStatusPanel()
Returns:status panel of associated controller

getTimeMillis

public final long getTimeMillis()

Returns time in milliseconds since the worker was initialized

Returns:elapsed time in milliseconds

isRunning

public boolean isRunning()

True if still running, false if stopped

Returns:boolean

requestStop

public void requestStop()

Request the threads to stop.

setCurrentROI

public boolean setCurrentROI()

Get the currently selected ROI in active MM display, and set it as analysis ROI.

Returns:true if ROI has been set, false if no ROI is set

setSetpoint

public void setSetpoint(double value)

Set the controller setpoint to value

Parameters:
  • value – new value of controller setpoint