Package org.optaplanner.core.config.constructionheuristic

## Enum ConstructionHeuristicType

- java.lang.Object
- - java.lang.Enum<ConstructionHeuristicType>
  - - org.optaplanner.core.config.constructionheuristic.ConstructionHeuristicType

- All Implemented Interfaces:
    `Serializable`, `Comparable<ConstructionHeuristicType>`

      public enum ConstructionHeuristicType
      extends Enum<ConstructionHeuristicType>

- - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---
    `ALLOCATE_ENTITY_FROM_QUEUE` | Put all entities in a queue.
    `ALLOCATE_FROM_POOL` | Put all entity-value combinations in a pool.
    `ALLOCATE_TO_VALUE_FROM_QUEUE` | Put all values in a round-robin queue.
    `CHEAPEST_INSERTION` | A specific form of `ALLOCATE_FROM_POOL`.
    `FIRST_FIT` | A specific form of `ALLOCATE_ENTITY_FROM_QUEUE`.
    `FIRST_FIT_DECREASING` | A specific form of `ALLOCATE_ENTITY_FROM_QUEUE`.
    `STRONGEST_FIT` | A specific form of `ALLOCATE_ENTITY_FROM_QUEUE`.
    `STRONGEST_FIT_DECREASING` | A specific form of `ALLOCATE_ENTITY_FROM_QUEUE`.
    `WEAKEST_FIT` | A specific form of `ALLOCATE_ENTITY_FROM_QUEUE`.
    `WEAKEST_FIT_DECREASING` | A specific form of `ALLOCATE_ENTITY_FROM_QUEUE`.

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static ConstructionHeuristicType[]` | `getBluePrintTypes()` |
    `EntitySorterManner` | `getDefaultEntitySorterManner()` |
    `ValueSorterManner` | `getDefaultValueSorterManner()` |
    `static ConstructionHeuristicType` | `valueOf​(String name)` | Returns the enum constant of this type with the specified name.
    `static ConstructionHeuristicType[]` | `values()` | Returns an array containing the constants of this enum type, in the order they are declared.

    - ### Methods inherited from class java.lang.Enum

      `clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Enum Constant Detail

    - #### FIRST_FIT

          public static final ConstructionHeuristicType FIRST_FIT

      A specific form of `ALLOCATE_ENTITY_FROM_QUEUE`.

    - #### FIRST_FIT_DECREASING

          public static final ConstructionHeuristicType FIRST_FIT_DECREASING

      A specific form of `ALLOCATE_ENTITY_FROM_QUEUE`.

    - #### WEAKEST_FIT

          public static final ConstructionHeuristicType WEAKEST_FIT

      A specific form of `ALLOCATE_ENTITY_FROM_QUEUE`.

    - #### WEAKEST_FIT_DECREASING

          public static final ConstructionHeuristicType WEAKEST_FIT_DECREASING

      A specific form of `ALLOCATE_ENTITY_FROM_QUEUE`.

    - #### STRONGEST_FIT

          public static final ConstructionHeuristicType STRONGEST_FIT

      A specific form of `ALLOCATE_ENTITY_FROM_QUEUE`.

    - #### STRONGEST_FIT_DECREASING

          public static final ConstructionHeuristicType STRONGEST_FIT_DECREASING

      A specific form of `ALLOCATE_ENTITY_FROM_QUEUE`.

    - #### ALLOCATE_ENTITY_FROM_QUEUE

          public static final ConstructionHeuristicType ALLOCATE_ENTITY_FROM_QUEUE

      Put all entities in a queue. Assign the first entity (from that queue) to the best value. Repeat until all entities are assigned.

    - #### ALLOCATE_TO_VALUE_FROM_QUEUE

          public static final ConstructionHeuristicType ALLOCATE_TO_VALUE_FROM_QUEUE

      Put all values in a round-robin queue. Assign the best entity to the first value (from that queue). Repeat until all entities are assigned.

    - #### CHEAPEST_INSERTION

          public static final ConstructionHeuristicType CHEAPEST_INSERTION

      A specific form of `ALLOCATE_FROM_POOL`.

    - #### ALLOCATE_FROM_POOL

          public static final ConstructionHeuristicType ALLOCATE_FROM_POOL

      Put all entity-value combinations in a pool. Assign the best entity to best value. Repeat until all entities are assigned.

  - ### Method Detail

    - #### values

          public static ConstructionHeuristicType[] 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 (ConstructionHeuristicType c : ConstructionHeuristicType.values())
              System.out.println(c);

      Returns:
        an array containing the constants of this enum type, in the order they are declared

    - #### valueOf

          public static ConstructionHeuristicType valueOf​(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:
        `IllegalArgumentException` - if this enum type has no constant with the specified name
        `NullPointerException` - if the argument is null

    - #### getDefaultEntitySorterManner

          public EntitySorterManner getDefaultEntitySorterManner()

    - #### getDefaultValueSorterManner

          public ValueSorterManner getDefaultValueSorterManner()

    - #### getBluePrintTypes

          public static ConstructionHeuristicType[] getBluePrintTypes()

      Returns:
        `values()` without duplicates (abstract types that end up behaving as one of the other types).