Package com.uc4.api.objects
Class MinimumRuntime
- java.lang.Object
-
- com.uc4.api.objects.MinimumRuntime
-
- Direct Known Subclasses:
MaximumRuntime
public class MinimumRuntime extends java.lang.ObjectThis class represents the settings for Minimum Runtime.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleandirtyprotected intfixedValueSecondsprotected intmethodprotected static intMETHOD_ERTprotected static intMETHOD_FIXprotected static intMETHOD_NONEprotected intpercentERT
-
Constructor Summary
Constructors Modifier Constructor Description protectedMinimumRuntime()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MinimumRuntimecopy()This method is used to return the copy of the MinimumRuntime Object.intgetFixedValue()Returns the fixed value in seconds.intgetPercentERT()Returns the correction value in percent for ERT for the minimum runtime.booleanisMethodERT()Returnstrueif the estimated runtime method is used.booleanisMethodFixedValue()Returnstrueif a fixed value is used for the minimum runtime.booleanisMethodNone()Returnstrueif the minimum runtime is not supervised.voidsetMethodERT(int percent)Selects ERT method to monitor the minimum runtime.voidsetMethodFixedValue(int seconds)Sets a fixed value for the minimum runtime.voidsetMethodNone()The minimum runtime is not supervised.
-
-
-
Field Detail
-
METHOD_NONE
protected static final int METHOD_NONE
- See Also:
- Constant Field Values
-
METHOD_FIX
protected static final int METHOD_FIX
- See Also:
- Constant Field Values
-
METHOD_ERT
protected static final int METHOD_ERT
- See Also:
- Constant Field Values
-
method
protected int method
-
fixedValueSeconds
protected int fixedValueSeconds
-
percentERT
protected int percentERT
-
dirty
protected boolean dirty
-
-
Method Detail
-
setMethodNone
public void setMethodNone()
The minimum runtime is not supervised.
-
isMethodNone
public boolean isMethodNone()
Returnstrueif the minimum runtime is not supervised.- Returns:
- Boolean value indicating if the minimum runtime is supervised
-
isMethodFixedValue
public boolean isMethodFixedValue()
Returnstrueif a fixed value is used for the minimum runtime.- Returns:
- True if a fixed value is used
-
isMethodERT
public boolean isMethodERT()
Returnstrueif the estimated runtime method is used.- Returns:
- True if ERT method is used
-
setMethodFixedValue
public void setMethodFixedValue(int seconds)
Sets a fixed value for the minimum runtime. An action as an ELSE condition must be specified which reacts when runtime falls below the minimum runtime.- Parameters:
seconds- Number of seconds for the minimum runtime
-
setMethodERT
public void setMethodERT(int percent)
Selects ERT method to monitor the minimum runtime.The valid estimated runtime at the time of the task's activation is used as the minimum runtime. An action as an ELSE condition must be specified which reacts when runtime falls below the minimum runtime. A correction value in percent may be specified for ERT for the minimum runtime. The determined value is subtracted from the estimated runtime.
- Parameters:
percent- Correction value in percent for ERT for the minimum runtime
-
getFixedValue
public int getFixedValue()
Returns the fixed value in seconds.- Returns:
- Fixed value in seconds
-
getPercentERT
public int getPercentERT()
Returns the correction value in percent for ERT for the minimum runtime.- Returns:
- Correction value in percent for ERT for the minimum runtime
-
copy
public MinimumRuntime copy()
This method is used to return the copy of the MinimumRuntime Object.- Returns:
- MinimumRuntime
-
-