Enum Class SolvingStatus

java.lang.Object
java.lang.Enum<SolvingStatus>
ai.timefold.solver.service.definition.api.SolvingStatus
All Implemented Interfaces:
Serializable, Comparable<SolvingStatus>, Constable

public enum SolvingStatus extends Enum<SolvingStatus>
Represents the dateset lifecycle.

Use case 1: a valid dataset is submitted without requesting solving. In this case, the status will be DATASET_CREATED, DATASET_VALIDATED, and then DATASET_COMPUTED.

Use case 2: a valid dataset is submitted and solving is requested. In this case, the status will be DATASET_CREATED, DATASET_VALIDATED, DATASET_COMPUTED, SOLVING_STARTED, SOLVING_ACTIVE, SOLVING_COMPLETED. SOLVING_SCHEDULED is skipped as the solving is started immediately.

Use case 3: solving is requested for a previously submitted dataset. The dataset is in the DATASET_COMPUTED status before the operation starts. It moves to SOLVING_SCHEDULED, SOLVING_STARTED, SOLVING_ACTIVE, and SOLVING_COMPLETED.

Use case 4: an invalid dataset is submitted. In this case, the status will be DATASET_CREATED, DATASET_INVALID.

  • Enum Constant Details

    • DATASET_CREATED

      public static final SolvingStatus DATASET_CREATED
    • DATASET_VALIDATED

      public static final SolvingStatus DATASET_VALIDATED
    • DATASET_INVALID

      public static final SolvingStatus DATASET_INVALID
    • DATASET_COMPUTED

      public static final SolvingStatus DATASET_COMPUTED
    • SOLVING_SCHEDULED

      public static final SolvingStatus SOLVING_SCHEDULED
    • SOLVING_STARTED

      public static final SolvingStatus SOLVING_STARTED
    • SOLVING_ACTIVE

      public static final SolvingStatus SOLVING_ACTIVE
    • SOLVING_COMPLETED

      public static final SolvingStatus SOLVING_COMPLETED
    • SOLVING_INCOMPLETE

      public static final SolvingStatus SOLVING_INCOMPLETE
    • SOLVING_FAILED

      public static final SolvingStatus SOLVING_FAILED
  • Method Details

    • values

      public static SolvingStatus[] 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

      public static SolvingStatus valueOf(String name)
      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 name
      NullPointerException - if the argument is null