Commit 40c64836 authored by Aliaksandr Halavatyi's avatar Aliaksandr Halavatyi
Browse files

incroducing TestCommander

parent 746e05a2
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<version>5.0</version> <relativePath /> </parent> --> <version>5.0</version> <relativePath /> </parent> -->
<groupId>embl.almf</groupId> <groupId>embl.almf</groupId>
<artifactId>AutoMicTools_</artifactId> <artifactId>AutoMicTools_</artifactId>
<version>1.1.26-SNAPSHOT</version> <version>1.1.27-SNAPSHOT</version>
<name>plugins/AutoMicTools_.jar</name> <name>plugins/AutoMicTools_.jar</name>
<description>Collection of tools for automated (feedback) microscopy data acquisition and analysis</description> <description>Collection of tools for automated (feedback) microscopy data acquisition and analysis</description>
......
package automic.online.microscope;
import java.io.File;
import automic.utils.logger.Logger;
import automic.utils.logger.TextWindowLogger;
import automic.geom.Point3D;
import automic.parameters.ParameterCollection;
import ij.gui.Roi;
public class TestCommander implements MicroscopeCommanderInterface {
Logger testLogger;
@Override
public void parseSettings(ParameterCollection _microscopeSettings) {
}
@Override
public void connect() {
testLogger=new TextWindowLogger("AutoMic pipeline test");
}
@Override
public void skipJobsInCurrentPosition() {
testLogger.sendInfoMessage("Received command skip Jobs in current position");
}
@Override
public void stopCommander() {}
@Override
public void submitJobPixels(File _sourceImageFile, String _jobNameToPerform, Point3D[] _positions,Roi[] _bleachRois)throws Exception{
testLogger.sendInfoMessage("Received command for imaging job for positions"+_positions.length+"positions:");
for (Point3D p:_positions) {
testLogger.sendInfoMessage(String.format("X= %f; Y= %f; Z= %f;", p.getX(),p.getY(),p.getZ()));
}
}
@Override
public void submitJobPixels(File _sourceImageFile, String _jobNameToPerform, Point3D _position)
throws Exception{
submitJobPixels(_sourceImageFile, _jobNameToPerform, new Point3D[] {_position},null);
}
@Override
public void submitJobPixels(File _sourceImageFile, String _jobNameToPerform, Point3D[] _positions)
throws Exception{
submitJobPixels(_sourceImageFile, _jobNameToPerform, _positions, null);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment