Class MaximumRuntime


  • public class MaximumRuntime
    extends MinimumRuntime
    This class represents the maximum runtime settings.
    • Constructor Detail

      • MaximumRuntime

        protected MaximumRuntime​(org.w3c.dom.Element runtime)
    • 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 99
        time - Time
        timezone - Name of the timezone
      • isMethodDate

        public boolean isMethodDate()
        Returns true 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 class MinimumRuntime
        Returns:
        MaximumRuntime