Package com.uc4.api.objects
Class MaximumRuntime
java.lang.Object
com.uc4.api.objects.MinimumRuntime
com.uc4.api.objects.MaximumRuntime
This class represents the maximum runtime settings.
-
Field Summary
Fields inherited from class com.uc4.api.objects.MinimumRuntime
dirty, fixedValueSeconds, method, METHOD_ERT, METHOD_FIX, METHOD_NONE, percentERT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
This method is used to return the copy of the MaximumRuntime Object.int
getDays()
Returns the number of days when the task must be finished.getTime()
Returns the time when the task must be finished.Returns the time zone which is used for the current date.boolean
Returnstrue
if date and time are set for monitoring the maximum runtime.void
setMethodDate
(int days, Time time, UC4TimezoneName timezone) Sets date and time for the maximum runtime.Methods inherited from class com.uc4.api.objects.MinimumRuntime
getFixedValue, getPercentERT, isMethodERT, isMethodFixedValue, isMethodNone, setMethodERT, setMethodFixedValue, setMethodNone
-
Constructor Details
-
MaximumRuntime
-
-
Method Details
-
setMethodDate
Sets date and time for the maximum runtime.A number of days and time of day are set for when the task must be finished. The starting point for the calculation of the date is the real date of the task. An action as an ELSE condition must be specified which reacts when maximum runtime is exceeded.
- Parameters:
days
- Number of days between 0 and 99time
- Timetimezone
- Name of the timezone
-
isMethodDate
public boolean isMethodDate()Returnstrue
if date and time are set for monitoring the maximum runtime.- Returns:
- Boolean which is set to true if date and time are selected
-
getDays
public int getDays()Returns the number of days when the task must be finished.- Returns:
- Number of days when the task must be finished
-
getTime
Returns the time when the task must be finished.- Returns:
- Time when the task must be finished
-
getTimezone
Returns the time zone which is used for the current date.- Returns:
- Time zone
-
copy
This method is used to return the copy of the MaximumRuntime Object.- Overrides:
copy
in classMinimumRuntime
- Returns:
- MaximumRuntime
-