Enum Class ExecutionQualification
java.lang.Object
java.lang.Enum<ExecutionQualification>
com.inet.taskplanner.server.api.action.ExecutionQualification
- All Implemented Interfaces:
Serializable
,Comparable<ExecutionQualification>
,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionabstract 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
Returns the enum constant of this class with the specified name.static ExecutionQualification[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AT_LEAST_ONE_CONDITION_IS_FULFILLED
-
ALL_CONDITIONS_ARE_FULFILLED
-
NO_CONDITION_IS_FULFILLED
-
ALWAYS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- 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
-