Class TerminationFactory<Solution_>
java.lang.Object
org.optaplanner.core.impl.solver.termination.TerminationFactory<Solution_>
-
Method Summary
Modifier and TypeMethodDescriptionprotected List<Termination<Solution_>>
buildInnerTermination
(HeuristicConfigPolicy<Solution_> configPolicy) <Score_ extends Score<Score_>>
Termination<Solution_>buildTermination
(HeuristicConfigPolicy<Solution_> configPolicy) buildTermination
(HeuristicConfigPolicy<Solution_> configPolicy, Termination<Solution_> chainedTermination) protected Termination<Solution_>
buildTerminationFromList
(List<Termination<Solution_>> terminationList) protected <Score_ extends Score<Score_>>
List<Termination<Solution_>>buildTimeBasedTermination
(HeuristicConfigPolicy<Solution_> configPolicy) static <Solution_>
TerminationFactory<Solution_>create
(TerminationConfig terminationConfig)
-
Method Details
-
create
-
buildTermination
public Termination<Solution_> buildTermination(HeuristicConfigPolicy<Solution_> configPolicy, Termination<Solution_> chainedTermination) -
buildTermination
public <Score_ extends Score<Score_>> Termination<Solution_> buildTermination(HeuristicConfigPolicy<Solution_> configPolicy) - Parameters:
configPolicy
- never null- Returns:
- sometimes null
-
buildTimeBasedTermination
protected <Score_ extends Score<Score_>> List<Termination<Solution_>> buildTimeBasedTermination(HeuristicConfigPolicy<Solution_> configPolicy) -
buildInnerTermination
protected List<Termination<Solution_>> buildInnerTermination(HeuristicConfigPolicy<Solution_> configPolicy) -
buildTerminationFromList
protected Termination<Solution_> buildTerminationFromList(List<Termination<Solution_>> terminationList)
-