AlicaCore

public final class AlicaCore

The core’s settings are controlled by MainGUI, and the Core then produces products from its factories, and initializes the Coordinator, and later terminates it.

Author:stefko

Methods

getAnalyzerFactory

public AnalyzerFactory getAnalyzerFactory()
Returns:AnalyzerFactory

getControllerFactory

public ControllerFactory getControllerFactory()
Returns:ControllerFactory

getInstance

public static AlicaCore getInstance()

Returns the singleton instance, or an exception if it was not yet initialized

Returns:the singleton instance of the core

getLaserFactory

public LaserFactory getLaserFactory()
Returns:LaserFactory

initialize

public static AlicaCore initialize(Studio studio)

Initialize the Singleton core

Parameters:
  • studio – MicroManager studio
Throws:
Returns:

the singleton instance of the core

isCoordinatorRunning

public boolean isCoordinatorRunning()

Checks if the stop flag of the coordinator was set.

Returns:true if coordinator’s stop flag was set, or if coordinator is null

printLoadedDevices

public void printLoadedDevices()

Print all loaded devices in the MMCore to the log.

setControlWorkerTickRate

public void setControlWorkerTickRate(int controller_tick_rate_ms)

Sets the tick rate for the controller.

Parameters:
  • controller_tick_rate_ms – delay between two runs of the ControlTask

setCurrentROI

public boolean setCurrentROI()

Sets currently selected ROI to the analyzer when it is initialized

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

setLaserPowerDeadzone

public void setLaserPowerDeadzone(double laser_power_deadzone)

Sets the deadzone of change of laser power output. For example, if set to 0.1, the laser would ignore requests for change of power that would be different by less than 10% from current output power.

Parameters:
  • laser_power_deadzone – deadzone size (NOT in percent)

setLaserVirtual

public void setLaserVirtual(boolean is_laser_virtual)

Inform factories that the laser should only display its output, not really communicate with the hardware.

Parameters:
  • is_laser_virtual – true if virtual, false if real

setMaxLaserPower

public void setMaxLaserPower(double max_laser_power)

Inform factories of maximal laser power value.

Parameters:
  • max_laser_power – maximal laser power value

startWorkers

public void startWorkers(ImagingMode imaging_mode)

Builds products from their factories using current settings, and starts the Coordinator (analysis is started)

Parameters:
  • imaging_mode

stopWorkers

public void stopWorkers()

Requests the coordinator to stop and then waits for it to join.