Interface Acceptor<Solution_>
-
- All Superinterfaces:
EventListener,LocalSearchPhaseLifecycleListener<Solution_>,SolverLifecycleListener<Solution_>
- All Known Implementing Classes:
AbstractAcceptor,AbstractTabuAcceptor,CompositeAcceptor,EntityTabuAcceptor,GreatDelugeAcceptor,HillClimbingAcceptor,LateAcceptanceAcceptor,MoveTabuAcceptor,SimulatedAnnealingAcceptor,StepCountingHillClimbingAcceptor,ValueTabuAcceptor
public interface Acceptor<Solution_> extends LocalSearchPhaseLifecycleListener<Solution_>
An Acceptor accepts or rejects a selectedMove. Note that theLocalSearchForagercan still ignore the advice of theAcceptor.- See Also:
AbstractAcceptor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisAccepted(LocalSearchMoveScope<Solution_> moveScope)-
Methods inherited from interface org.optaplanner.core.impl.localsearch.event.LocalSearchPhaseLifecycleListener
phaseEnded, phaseStarted, stepEnded, stepStarted
-
Methods inherited from interface org.optaplanner.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingStarted
-
-
-
-
Method Detail
-
isAccepted
boolean isAccepted(LocalSearchMoveScope<Solution_> moveScope)
- Parameters:
moveScope- not null- Returns:
- true if accepted
-
-