Class DefaultNeighborhoodTester<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.neighborhood.DefaultNeighborhoodTester<Solution_>
- All Implemented Interfaces:
NeighborhoodTester<Solution_>
@NullMarked
public final class DefaultNeighborhoodTester<Solution_>
extends Object
implements NeighborhoodTester<Solution_>
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultNeighborhoodTester(MoveProvider<Solution_> moveProvider, PlanningSolutionMetaModel<Solution_> solutionMetaModel) -
Method Summary
Modifier and TypeMethodDescriptionCreates an evaluation context for the given solution instance.
-
Constructor Details
-
DefaultNeighborhoodTester
public DefaultNeighborhoodTester(MoveProvider<Solution_> moveProvider, PlanningSolutionMetaModel<Solution_> solutionMetaModel)
-
-
Method Details
-
using
Description copied from interface:NeighborhoodTesterCreates an evaluation context for the given solution instance. Once you have the context, you can retrieve the moves via methods such asNeighborhoodTestContext.getMovesAsStream().Different evaluation contexts can be created, each bound to a different solution instance. They will operate independently of each other.
- Specified by:
usingin interfaceNeighborhoodTester<Solution_>- Parameters:
solution- the planning solution instance- Returns:
- a new execution context bound to the given solution
-