Interface InnerScoreDirectorFactory<Solution_,Score_ extends Score<Score_>>
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotationScore_
- the score type to go with the solution
- All Superinterfaces:
ScoreDirectorFactory<Solution_>
- All Known Implementing Classes:
AbstractScoreDirectorFactory
,DrlScoreDirectorFactory
,EasyScoreDirectorFactory
,IncrementalScoreDirectorFactory
public interface InnerScoreDirectorFactory<Solution_,Score_ extends Score<Score_>>
extends ScoreDirectorFactory<Solution_>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assertScoreFromScratch
(Solution_ solution) Asserts that if theScore
is calculated for the parameter solution, it would be equal to the score of that parameter.Creates a newScoreDirector
instance.buildScoreDirector
(boolean lookUpEnabled, boolean constraintMatchEnabledPreference) LikebuildScoreDirector()
, but optionally disablesConstraintMatch
tracking and look up for more performance (presuming theScoreDirector
implementation actually supports it to begin with).
-
Method Details
-
getSolutionDescriptor
SolutionDescriptor<Solution_> getSolutionDescriptor()- Returns:
- never null
-
getScoreDefinition
ScoreDefinition<Score_> getScoreDefinition()- Returns:
- never null
-
buildScoreDirector
InnerScoreDirector<Solution_,Score_> buildScoreDirector()Description copied from interface:ScoreDirectorFactory
Creates a newScoreDirector
instance.- Specified by:
buildScoreDirector
in interfaceScoreDirectorFactory<Solution_>
- Returns:
- never null
-
buildScoreDirector
InnerScoreDirector<Solution_,Score_> buildScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference) LikebuildScoreDirector()
, 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:
-
getInitializingScoreTrend
InitializingScoreTrend getInitializingScoreTrend()- Returns:
- never null
-
assertScoreFromScratch
Asserts that if theScore
is calculated for the parameter solution, it would be equal to the score of that parameter.- Parameters:
solution
- never null- See Also:
-