Class DefaultMoveTester<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.move.DefaultMoveTester<Solution_>
- All Implemented Interfaces:
MoveTester<Solution_>
@NullMarked
public final class DefaultMoveTester<Solution_>
extends Object
implements MoveTester<Solution_>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an execution context for the given solution instance.
-
Constructor Details
-
DefaultMoveTester
-
-
Method Details
-
using
Description copied from interface:MoveTesterCreates an execution context for the given solution instance.This method creates a score director from the cached factory and sets the working solution, which automatically triggers shadow variable initialization for the provided solution.
Multiple execution contexts can be created from the same
MoveTesterinstance, allowing sequential move execution with different solutions or the same solution at different points in time.- Specified by:
usingin interfaceMoveTester<Solution_>- Parameters:
solution- the planning solution instance- Returns:
- a new execution context bound to the given solution with initialized shadow variables
-