public class RegularPeriodConfiguration extends PeriodConfiguration
getPeriod()
ms.
However, this period can be measured in two ways: (i) The period should be as precisely as possible, such that the duration between two executions of the
jobs of the same task has mean getPeriod()
and minimal variance. Or, (ii), the period can be measured between the end of the execution of the last
job of the task in the previous iteration, and the beginning of the execution of the first task of the next execution. The latter allows to define periods way
smaller than the microscope is able to execute the jobs of the task, effectively implementing tasks which execute as fast as possible, or tasks which
execution times can be delayed if the microscope is occupied with tasks which cannot be delayed.Constructor and Description |
---|
RegularPeriodConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
checkConfiguration()
Checks the current state of the configuration.
|
java.lang.Object |
clone() |
int |
getPeriod() |
java.lang.String |
getTypeIdentifier()
Returns a unique identifier for this configuration type.
|
boolean |
isFixedTimes() |
void |
setFixedTimes(boolean fixedTimes) |
void |
setPeriod(int period) |
getNumExecutions, getStartTime, setNumExecutions, setStartTime
public java.lang.String getTypeIdentifier()
Configuration
public void setFixedTimes(boolean fixedTimes)
fixedTimes
- the fixedTimes to setpublic boolean isFixedTimes()
public void setPeriod(int period)
period
- the period to setpublic int getPeriod()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class PeriodConfiguration
java.lang.CloneNotSupportedException
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 PeriodConfiguration
ConfigurationException