Enum TaskExecutionState

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

    public enum TaskExecutionState
    extends java.lang.Enum<TaskExecutionState>
    All possible values for the execution state of a task.
    • Method Detail

      • values

        public static TaskExecutionState[] 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 (TaskExecutionState c : TaskExecutionState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TaskExecutionState 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
      • isFinal

        public boolean isFinal()
        If the task is in a final state, it will never change again to another state.
        Returns:
        true if task is in a final state.
      • isActive

        public boolean isActive()
        If the task is in an active state, the task can go into a different state by itself.
        Returns:
        true if task is in active state.
      • isPassive

        public boolean isPassive()
        If the task is in a passive state, the task will not go into a different state by itself.
        Returns:
        true if task is in active state.
      • isExecutingSteps

        public boolean isExecutingSteps()
        Determines if the task is in a state where it is executing steps. This is a subset of isActive()
        Returns:
        true if task is executing steps
      • isPassiveAfterExecuting

        public boolean isPassiveAfterExecuting()
        Determines if the task is passive but it has been executing steps.
        Returns:
        true if task is passive after it has been executing steps
      • isExecutionHalted

        public boolean isExecutionHalted()
        Determines if the task has been executing but is halted and can be continued.
        Returns:
        true if task is halted
      • isNotBeenExecuting

        public boolean isNotBeenExecuting()
        Determines if the task is never been executing.
        Returns:
        true if the task is never been executing