Interface PinningFilter<Solution_,Entity_>

Type Parameters:
Solution_ - the solution type, the class with the PlanningSolution annotation
Entity_ - the entity type, the class with the PlanningEntity annotation
All Known Subinterfaces:
PlanningEntity.NullPinningFilter

@Deprecated(forRemoval=true, since="1.23.0") @NullMarked public interface PinningFilter<Solution_,Entity_>
Deprecated, for removal: This API element is subject to removal in a future version.
Use PlanningPin instead.
Decides on accepting or discarding a PlanningEntity. A pinned PlanningEntity's planning variables are never changed.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(Solution_ solution, Entity_ entity)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Details

    • accept

      boolean accept(Solution_ solution, Entity_ entity)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      solution - working solution to which the entity belongs
      entity - a PlanningEntity
      Returns:
      true if the entity it is pinned, false if the entity is movable.