public class VaryingPeriodConfiguration extends PeriodConfiguration
Constructor and Description |
---|
VaryingPeriodConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
checkConfiguration()
Checks the current state of the configuration.
|
java.lang.Object |
clone() |
int |
getBreakTime()
Returns the additional time which should be waited after iterating through all periods.
|
int[] |
getPeriods()
Returns the periods.
|
java.lang.String |
getTypeIdentifier()
Returns a unique identifier for this configuration type.
|
void |
setBreakTime(int breakTime)
Sets an additional time which should be waited after iterating through all periods.
|
void |
setPeriods(int[] periods)
Sets the periods.
|
getNumExecutions, getStartTime, setNumExecutions, setStartTime
public void setBreakTime(int breakTime)
breakTime
- Wait time in ms.public java.lang.String getTypeIdentifier()
Configuration
public int getBreakTime()
public void setPeriods(int[] periods)
periods
- the periods to set (in ms).public int[] getPeriods()
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