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 Details

  • Method Details

    • using

      public MoveTestContext<Solution_> using(Solution_ solution)
      Description copied from interface: MoveTester
      Creates 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 MoveTester instance, allowing sequential move execution with different solutions or the same solution at different points in time.

      Specified by:
      using in interface MoveTester<Solution_>
      Parameters:
      solution - the planning solution instance
      Returns:
      a new execution context bound to the given solution with initialized shadow variables