Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aliaksandr Halavatyi
AutoMicTools
Commits
40c64836
Commit
40c64836
authored
Jun 24, 2021
by
Aliaksandr Halavatyi
Browse files
incroducing TestCommander
parent
746e05a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
40c64836
...
...
@@ -8,7 +8,7 @@
<version>5.0</version> <relativePath /> </parent> -->
<groupId>
embl.almf
</groupId>
<artifactId>
AutoMicTools_
</artifactId>
<version>
1.1.2
6
-SNAPSHOT
</version>
<version>
1.1.2
7
-SNAPSHOT
</version>
<name>
plugins/AutoMicTools_.jar
</name>
<description>
Collection of tools for automated (feedback) microscopy data acquisition and analysis
</description>
...
...
src/main/java/automic/online/microscope/TestCommander.java
0 → 100644
View file @
40c64836
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
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment