Class EasyScoreDirectorFactory<Solution_,Score_ extends Score<Score_>>
- java.lang.Object
-
- org.optaplanner.core.impl.score.director.AbstractScoreDirectorFactory<Solution_,Score_>
-
- org.optaplanner.core.impl.score.director.easy.EasyScoreDirectorFactory<Solution_,Score_>
-
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotationScore_
- the score type to go with the solution
- All Implemented Interfaces:
InnerScoreDirectorFactory<Solution_,Score_>
,ScoreDirectorFactory<Solution_>
public class EasyScoreDirectorFactory<Solution_,Score_ extends Score<Score_>> extends AbstractScoreDirectorFactory<Solution_,Score_>
Easy implementation ofScoreDirectorFactory
.- See Also:
EasyScoreDirector
,ScoreDirectorFactory
-
-
Field Summary
-
Fields inherited from class org.optaplanner.core.impl.score.director.AbstractScoreDirectorFactory
assertClonedSolution, assertionScoreDirectorFactory, initializingScoreTrend, logger, solutionDescriptor
-
-
Constructor Summary
Constructors Constructor Description EasyScoreDirectorFactory(SolutionDescriptor<Solution_> solutionDescriptor, EasyScoreCalculator<Solution_,Score_> easyScoreCalculator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EasyScoreDirector<Solution_,Score_>
buildScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference)
LikeInnerScoreDirectorFactory.buildScoreDirector()
, but optionally disablesConstraintMatch
tracking and look up for more performance (presuming theScoreDirector
implementation actually supports it to begin with).-
Methods inherited from class org.optaplanner.core.impl.score.director.AbstractScoreDirectorFactory
assertScoreFromScratch, buildScoreDirector, getAssertionScoreDirectorFactory, getInitializingScoreTrend, getScoreDefinition, getSolutionDescriptor, isAssertClonedSolution, setAssertClonedSolution, setAssertionScoreDirectorFactory, setInitializingScoreTrend
-
-
-
-
Constructor Detail
-
EasyScoreDirectorFactory
public EasyScoreDirectorFactory(SolutionDescriptor<Solution_> solutionDescriptor, EasyScoreCalculator<Solution_,Score_> easyScoreCalculator)
-
-
Method Detail
-
buildScoreDirector
public EasyScoreDirector<Solution_,Score_> buildScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference)
Description copied from interface:InnerScoreDirectorFactory
LikeInnerScoreDirectorFactory.buildScoreDirector()
, but optionally disablesConstraintMatch
tracking and look up for more performance (presuming theScoreDirector
implementation actually supports it to begin with).- Parameters:
lookUpEnabled
- true if aScoreDirector
implementation should track all working objects forScoreDirector.lookUpWorkingObject(Object)
constraintMatchEnabledPreference
- false if aScoreDirector
implementation should not doConstraintMatch
tracking even if it supports it.- Returns:
- never null
- See Also:
InnerScoreDirector.isConstraintMatchEnabled()
,InnerScoreDirector.getConstraintMatchTotalMap()
-
-