Class RuinRecreateConstructionHeuristicPhaseBuilder<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.phase.AbstractPhase.AbstractPhaseBuilder<Solution_>
ai.timefold.solver.core.impl.phase.AbstractPossiblyInitializingPhase.AbstractPossiblyInitializingPhaseBuilder<Solution_>
ai.timefold.solver.core.impl.constructionheuristic.DefaultConstructionHeuristicPhase.DefaultConstructionHeuristicPhaseBuilder<Solution_>
ai.timefold.solver.core.impl.heuristic.selector.move.generic.RuinRecreateConstructionHeuristicPhaseBuilder<Solution_>
public final class RuinRecreateConstructionHeuristicPhaseBuilder<Solution_>
extends DefaultConstructionHeuristicPhase.DefaultConstructionHeuristicPhaseBuilder<Solution_>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static <Solution_>
RuinRecreateConstructionHeuristicPhaseBuilder<Solution_>create(HeuristicConfigPolicy<Solution_> solverConfigPolicy, ConstructionHeuristicPhaseConfig constructionHeuristicConfig) static <Solution_>
RuinRecreateConstructionHeuristicPhaseBuilder<Solution_>create(HeuristicConfigPolicy<Solution_> solverConfigPolicy, EntitySelectorConfig entitySelectorConfig) ensureThreadSafe(InnerScoreDirector<Solution_, ?> scoreDirector) In a multithreaded environment, the builder will be shared among all moves and threads.withElementsToRecreate(List<Object> elements) withElementsToRuin(Set<Object> elements) Methods inherited from class ai.timefold.solver.core.impl.constructionheuristic.DefaultConstructionHeuristicPhase.DefaultConstructionHeuristicPhaseBuilder
enableAssertionsMethods inherited from class ai.timefold.solver.core.impl.phase.AbstractPossiblyInitializingPhase.AbstractPossiblyInitializingPhaseBuilder
isLastInitializingPhase
-
Method Details
-
create
public static <Solution_> RuinRecreateConstructionHeuristicPhaseBuilder<Solution_> create(HeuristicConfigPolicy<Solution_> solverConfigPolicy, EntitySelectorConfig entitySelectorConfig) -
create
public static <Solution_> RuinRecreateConstructionHeuristicPhaseBuilder<Solution_> create(HeuristicConfigPolicy<Solution_> solverConfigPolicy, ConstructionHeuristicPhaseConfig constructionHeuristicConfig) -
ensureThreadSafe
public RuinRecreateConstructionHeuristicPhaseBuilder<Solution_> ensureThreadSafe(InnerScoreDirector<Solution_, ?> scoreDirector) In a multithreaded environment, the builder will be shared among all moves and threads. Consequently, the listelementsToRecreateused bygetEntityPlaceror thedecider, will be shared between the main and move threads. This sharing can lead to race conditions. The method creates a new copy of the builder and the decider to avoid race conditions. -
withElementsToRecreate
public RuinRecreateConstructionHeuristicPhaseBuilder<Solution_> withElementsToRecreate(List<Object> elements) -
withElementsToRuin
public RuinRecreateConstructionHeuristicPhaseBuilder<Solution_> withElementsToRuin(Set<Object> elements) -
getEntityPlacer
-
build
- Overrides:
buildin classDefaultConstructionHeuristicPhase.DefaultConstructionHeuristicPhaseBuilder<Solution_>
-