Interface InnerScoreDirectorFactory<Solution_>
-
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotation
- All Superinterfaces:
ScoreDirectorFactory<Solution_>
- All Known Implementing Classes:
AbstractScoreDirectorFactory,ConstraintStreamScoreDirectorFactory,DroolsScoreDirectorFactory,EasyScoreDirectorFactory,IncrementalScoreDirectorFactory,TestGenDroolsScoreDirectorFactory
public interface InnerScoreDirectorFactory<Solution_> extends ScoreDirectorFactory<Solution_>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidassertScoreFromScratch(Solution_ solution)Asserts that if theScoreis calculated for the parameter solution, it would be equal to the score of that parameter.InnerScoreDirector<Solution_>buildScoreDirector()Creates a newScoreDirectorinstance.InnerScoreDirector<Solution_>buildScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference)LikebuildScoreDirector(), but optionally disablesConstraintMatchtracking and look up for more performance (presuming theScoreDirectorimplementation actually supports it to begin with).InitializingScoreTrendgetInitializingScoreTrend()ScoreDefinitiongetScoreDefinition()SolutionDescriptor<Solution_>getSolutionDescriptor()
-
-
-
Method Detail
-
getSolutionDescriptor
SolutionDescriptor<Solution_> getSolutionDescriptor()
- Returns:
- never null
-
getScoreDefinition
ScoreDefinition getScoreDefinition()
- Returns:
- never null
-
buildScoreDirector
InnerScoreDirector<Solution_> buildScoreDirector()
Description copied from interface:ScoreDirectorFactoryCreates a newScoreDirectorinstance.- Specified by:
buildScoreDirectorin interfaceScoreDirectorFactory<Solution_>- Returns:
- never null
-
buildScoreDirector
InnerScoreDirector<Solution_> buildScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference)
LikebuildScoreDirector(), but optionally disablesConstraintMatchtracking and look up for more performance (presuming theScoreDirectorimplementation actually supports it to begin with).- Parameters:
lookUpEnabled- true if aScoreDirectorimplementation should track all working objects forScoreDirector.lookUpWorkingObject(Object)constraintMatchEnabledPreference- false if aScoreDirectorimplementation should not doConstraintMatchtracking even if it supports it.- Returns:
- never null
- See Also:
ScoreDirector.isConstraintMatchEnabled(),ScoreDirector.getConstraintMatchTotalMap()
-
getInitializingScoreTrend
InitializingScoreTrend getInitializingScoreTrend()
- Returns:
- never null
-
assertScoreFromScratch
void assertScoreFromScratch(Solution_ solution)
Asserts that if theScoreis calculated for the parameter solution, it would be equal to the score of that parameter.- Parameters:
solution- never null- See Also:
InnerScoreDirector.assertWorkingScoreFromScratch(Score, Object)
-
-