Package com.uc4.api.objects
Class MaximumRuntime
- java.lang.Object
-
- com.uc4.api.objects.MinimumRuntime
-
- com.uc4.api.objects.MaximumRuntime
-
public class MaximumRuntime extends MinimumRuntime
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 Modifier Constructor Description protected
MaximumRuntime(org.w3c.dom.Element runtime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaximumRuntime
copy()
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.Time
getTime()
Returns the time when the task must be finished.UC4TimezoneName
getTimezone()
Returns the time zone which is used for the current date.boolean
isMethodDate()
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
-
-
-
-
Method Detail
-
setMethodDate
public void setMethodDate(int days, Time time, UC4TimezoneName timezone)
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
public Time getTime()
Returns the time when the task must be finished.- Returns:
- Time when the task must be finished
-
getTimezone
public UC4TimezoneName getTimezone()
Returns the time zone which is used for the current date.- Returns:
- Time zone
-
copy
public MaximumRuntime copy()
This method is used to return the copy of the MaximumRuntime Object.- Overrides:
copy
in classMinimumRuntime
- Returns:
- MaximumRuntime
-
-