Enum ExecutionQualification

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ExecutionQualification>

    public enum ExecutionQualification
    extends java.lang.Enum<ExecutionQualification>
    Execution qualifications are used to determine whether actions should process job results. Decision is based on number of executed jobs and number of executed jobs with fulfilled conditions.
    Since:
    taskplanner 3.0
    • Method Detail

      • values

        public static ExecutionQualification[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ExecutionQualification c : ExecutionQualification.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ExecutionQualification valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • mustHandleResults

        public abstract boolean mustHandleResults​(int numberOfJobsWithFulfilledConditions,
                                                  int numberOfJobs)
        Determine whether an action with this Qualification must run based of number of executed jobs and number of executed jobs with fulfilled conditions.
        Parameters:
        numberOfJobsWithFulfilledConditions - how many jobs have fulfilled conditions.
        numberOfJobs - how many jobs were executed.
        Returns:
        true if a action with this qualification must run.
        Since:
        taskplanner 3.0