Enum ExecutionQualification
- java.lang.Object
-
- java.lang.Enum<ExecutionQualification>
-
- com.inet.taskplanner.server.api.action.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 whetheractions
should process job results. Decision is based on number of executed jobs and number of executed jobs with fulfilled conditions.- Since:
- taskplanner 3.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_CONDITIONS_ARE_FULFILLED
ALWAYS
AT_LEAST_ONE_CONDITION_IS_FULFILLED
NO_CONDITION_IS_FULFILLED
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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.static ExecutionQualification
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ExecutionQualification[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AT_LEAST_ONE_CONDITION_IS_FULFILLED
public static final ExecutionQualification AT_LEAST_ONE_CONDITION_IS_FULFILLED
-
ALL_CONDITIONS_ARE_FULFILLED
public static final ExecutionQualification ALL_CONDITIONS_ARE_FULFILLED
-
NO_CONDITION_IS_FULFILLED
public static final ExecutionQualification NO_CONDITION_IS_FULFILLED
-
ALWAYS
public static final ExecutionQualification ALWAYS
-
-
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 namejava.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
-
-