public class BrentFocusSearchConfiguration extends FocusSearchConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIGURATION_ID
The identifier for this configuration.
|
Constructor and Description |
---|
BrentFocusSearchConfiguration()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
checkConfiguration()
Checks the current state of the configuration.
|
java.lang.Object |
clone() |
double |
getFocusLowerBound()
Returns the minimal relative focus.
|
double |
getFocusUpperBound()
Returns the maximal relative focus.
|
int |
getMaxSearchSteps()
Returns the maximal number of images which should be taken and analyzed to find the optional focal plane
|
double |
getTolerance()
Returns the tolerance, in um, for the focal plane position.
|
java.lang.String |
getTypeIdentifier()
Returns a unique identifier for this configuration type.
|
void |
setFocusLowerBound(double focusLowerBound)
Sets the minimal relative focus.
|
void |
setFocusUpperBound(double focusUpperBound)
Sets the maximal relative focus.
|
void |
setMaxSearchSteps(int maxSearchSteps)
Sets the maximal number of images which should be taken and analyzed to find the optional focal plane
|
void |
setTolerance(double tolerance)
Sets the tolerance, in um, for the focal plane position.
|
public static final java.lang.String CONFIGURATION_ID
public BrentFocusSearchConfiguration()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class FocusSearchConfiguration
java.lang.CloneNotSupportedException
public java.lang.String getTypeIdentifier()
Configuration
public void setFocusLowerBound(double focusLowerBound)
focusLowerBound
- lower relative focus boundpublic double getFocusLowerBound()
public void setFocusUpperBound(double focusUpperBound)
focusUpperBound
- upper relative focus boundpublic double getFocusUpperBound()
public void setMaxSearchSteps(int maxSearchSteps)
maxSearchSteps
- maximal number of focus search steps. Must be larger than one.public int getMaxSearchSteps()
public double getTolerance()
public void setTolerance(double tolerance)
tolerance
- tolerance in um. Must be bigger than 0.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 ResourceConfiguration
ConfigurationException