public class AutoFocusJobConfiguration extends JobConfiguration implements ImageProducerConfiguration, JobContainerConfiguration, TableProducerConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FOCUS_TABLE_DEFAULT_NAME
Default name for focus table.
|
static java.lang.String |
IMAGE_SAVE_NAME_DEFAULT
Default name for focus images.
|
static java.lang.String |
TYPE_IDENTIFIER
The identifier for this job type.
|
Constructor and Description |
---|
AutoFocusJobConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addJob(JobConfiguration job)
Adds a job to the job list.
|
void |
addJob(JobConfiguration job,
int index)
Adds a job to the job list.
|
void |
checkConfiguration()
Checks the current state of the configuration.
|
void |
clearJobs()
Removes all jobs from the job list.
|
java.lang.Object |
clone() |
java.lang.String |
getChannel() |
java.lang.String |
getChannelGroup() |
java.lang.String |
getDescription()
Returns a short description of this job.
|
double |
getExposure() |
FocusConfiguration |
getFocusConfiguration() |
FocusScoreConfiguration |
getFocusScoreAlgorithm()
Returns the focus algorithm with which it is detected if the focus of an image made at a give focus position is better than the other.
|
FocusSearchConfiguration |
getFocusSearchAlgorithm()
Returns the focus search algorithm.
|
java.lang.String |
getFocusTableSaveName()
Returns the name under which the focus-table is saved, or null, if it is not saved.
|
java.lang.String |
getImageSaveName()
Returns the name under which the images should be saved.
|
java.lang.String[] |
getImageSaveNames()
Should return the names of all images produced by this job and which should be saved to disk.
|
JobConfiguration[] |
getJobs()
Returns the job list which might be edited by the caller.
|
int |
getNumberOfImages()
Returns the number of images which get produced per evaluation of a job initialized with this configuration.
|
TableDefinition |
getProducedTableDefinition()
Returns the definition of the table layout of the tables produced by this producer, e.g.
|
java.lang.String |
getTypeIdentifier()
Returns a unique identifier for this configuration type.
|
boolean |
isRememberFocus()
Returns true if next focus search should be centered around the last iterations maximal focal plane.
|
boolean |
isResetFocusAfterSearch()
Defines if the focus should be reset to its original value after the job (and all sub-jobs) finished.
|
void |
removeJobAt(int index)
Removes the job at the given index.
|
void |
setChannel(java.lang.String channelGroup,
java.lang.String channel)
Sets the channel which should be imaged.
|
void |
setExposure(double exposure) |
void |
setFocusConfiguration(FocusConfiguration focusConfiguration) |
void |
setFocusScoreAlgorithm(FocusScoreConfiguration focusScoreAlgorithm)
Sets the focus algorithm with which it is detected if the focus of an image made at a give focus position is better than the other.
|
void |
setFocusSearchAlgorithm(FocusSearchConfiguration focusSearchAlgorithm)
sets the focus search algorithm.
|
void |
setFocusTableSaveName(java.lang.String focusTableSaveName)
Sets the name under which the focus-table should be saved.
|
void |
setImageSaveName(java.lang.String name)
Sets the name under which the images should be saved.
|
void |
setJobs(JobConfiguration[] jobs)
Sets the job list to the given list.
|
void |
setRememberFocus(boolean rememberFocus)
Set to true if next focus search should be centered around the last iterations maximal focal plane.
|
void |
setResetFocusAfterSearch(boolean resetFocusAfterSearch)
Defines if the focus should be reset to its original value after the job (and all sub-jobs) finished.
|
toString
public static final java.lang.String TYPE_IDENTIFIER
public static final java.lang.String FOCUS_TABLE_DEFAULT_NAME
public static final java.lang.String IMAGE_SAVE_NAME_DEFAULT
public java.lang.String getTypeIdentifier()
Configuration
getTypeIdentifier
in interface Configuration
public FocusSearchConfiguration getFocusSearchAlgorithm()
public void setFocusSearchAlgorithm(FocusSearchConfiguration focusSearchAlgorithm)
focusSearchAlgorithm
- focus search algorithm.public void setFocusConfiguration(FocusConfiguration focusConfiguration)
focusConfiguration
- The configuration of the focus .public FocusConfiguration getFocusConfiguration()
public java.lang.String getDescription()
JobConfiguration
getDescription
in class JobConfiguration
public void setChannel(java.lang.String channelGroup, java.lang.String channel)
channelGroup
- The group of the channel.channel
- The channel.public java.lang.String getChannel()
public java.lang.String getChannelGroup()
public void setExposure(double exposure)
exposure
- the exposure to setpublic double getExposure()
public java.lang.String getImageSaveName()
public void setImageSaveName(java.lang.String name)
name
- Name of imaging job.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class JobConfiguration
java.lang.CloneNotSupportedException
public java.lang.String[] getImageSaveNames()
ImageProducerConfiguration
getImageSaveNames
in interface ImageProducerConfiguration
public JobConfiguration[] getJobs()
JobContainerConfiguration
getJobs
in interface JobContainerConfiguration
public void setJobs(JobConfiguration[] jobs)
JobContainerConfiguration
setJobs
in interface JobContainerConfiguration
jobs
- New job list.public void addJob(JobConfiguration job)
JobContainerConfiguration
addJob
in interface JobContainerConfiguration
job
- Job to be added.public void clearJobs()
JobContainerConfiguration
clearJobs
in interface JobContainerConfiguration
public void removeJobAt(int index)
JobContainerConfiguration
removeJobAt
in interface JobContainerConfiguration
index
- Index of the job to be removed.public void addJob(JobConfiguration job, int index)
JobContainerConfiguration
addJob
in interface JobContainerConfiguration
job
- Job to be added.index
- Index where the job should be added.public void setFocusScoreAlgorithm(FocusScoreConfiguration focusScoreAlgorithm)
focusScoreAlgorithm
- public FocusScoreConfiguration getFocusScoreAlgorithm()
public int getNumberOfImages()
ImageProducerConfiguration
getNumberOfImages
in interface ImageProducerConfiguration
public void setResetFocusAfterSearch(boolean resetFocusAfterSearch)
resetFocusAfterSearch
- Set to true to return to original value.public boolean isResetFocusAfterSearch()
public void setFocusTableSaveName(java.lang.String focusTableSaveName)
focusTableSaveName
- Name for the focus table (without extension), or null.public java.lang.String getFocusTableSaveName()
public void setRememberFocus(boolean rememberFocus)
rememberFocus
- True if next focus search should be centered around last maximum.public boolean isRememberFocus()
public TableDefinition getProducedTableDefinition()
TableProducerConfiguration
TableProducer.getProducedTableDefinition()
.getProducedTableDefinition
in interface TableProducerConfiguration
public void checkConfiguration() throws ConfigurationException
Configuration
ConfigurationException
is thrown describing the error, and what has to be changed in the configuration, by the user,
such that it becomes valid. This error can then e.g. be displayed to the user
(see ConfigurationAddonTools.displayConfigurationInvalid(ConfigurationException, YouScopeClient).checkConfiguration
in interface Configuration
checkConfiguration
in class JobConfiguration
ConfigurationException