Interface InnerScoreDirectorFactory<Solution_,Score_ extends Score<Score_>>
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotationScore_- the score type to go with the solution
- All Superinterfaces:
ScoreDirectorFactory<Solution_>
- All Known Implementing Classes:
AbstractConstraintStreamScoreDirectorFactory,AbstractScoreDirectorFactory,BavetConstraintStreamScoreDirectorFactory,EasyScoreDirectorFactory,IncrementalScoreDirectorFactory
public interface InnerScoreDirectorFactory<Solution_,Score_ extends Score<Score_>>
extends ScoreDirectorFactory<Solution_>
-
Method Summary
Modifier and TypeMethodDescriptionvoidassertScoreFromScratch(Solution_ solution) Asserts that if theScoreis calculated for the parameter solution, it would be equal to the score of that parameter.default InnerScoreDirector<Solution_,Score_> buildDerivedScoreDirector(boolean lookUpEnabled, ConstraintMatchPolicy constraintMatchPolicy) LikebuildScoreDirector(boolean, ConstraintMatchPolicy), but makes the score director a derived one.default InnerScoreDirector<Solution_,Score_> buildScoreDirector(boolean lookUpEnabled, ConstraintMatchPolicy constraintMatchPolicy) LikeScoreDirectorFactory.buildScoreDirector(boolean, ConstraintMatchPolicy, boolean), with the final parameter set to true.buildScoreDirector(boolean lookUpEnabled, ConstraintMatchPolicy constraintMatchPolicy, boolean expectShadowVariablesInCorrectState) default boolean
-
Method Details
-
getSolutionDescriptor
SolutionDescriptor<Solution_> getSolutionDescriptor()- Returns:
- never null
-
getScoreDefinition
ScoreDefinition<Score_> getScoreDefinition()- Returns:
- never null
-
buildScoreDirector
default InnerScoreDirector<Solution_,Score_> buildScoreDirector(boolean lookUpEnabled, ConstraintMatchPolicy constraintMatchPolicy) Description copied from interface:ScoreDirectorFactoryLikeScoreDirectorFactory.buildScoreDirector(boolean, ConstraintMatchPolicy, boolean), with the final parameter set to true.- Specified by:
buildScoreDirectorin interfaceScoreDirectorFactory<Solution_>- Parameters:
lookUpEnabled- true if aScoreDirectorimplementation should track all working objects forScoreDirector.lookUpWorkingObject(Object)constraintMatchPolicy- how should theScoreDirectortrackconstraint matches.- Returns:
- never null
-
buildScoreDirector
InnerScoreDirector<Solution_,Score_> buildScoreDirector(boolean lookUpEnabled, ConstraintMatchPolicy constraintMatchPolicy, boolean expectShadowVariablesInCorrectState) - Specified by:
buildScoreDirectorin interfaceScoreDirectorFactory<Solution_>
-
buildDerivedScoreDirector
default InnerScoreDirector<Solution_,Score_> buildDerivedScoreDirector(boolean lookUpEnabled, ConstraintMatchPolicy constraintMatchPolicy) LikebuildScoreDirector(boolean, ConstraintMatchPolicy), but makes the score director a derived one. Derived score directors may make choices which the main score director can not make, such as reducing logging. Derived score directors are typically used for multithreaded solving, testing and assert modes.- Parameters:
lookUpEnabled- true if aScoreDirectorimplementation should track all working objects forScoreDirector.lookUpWorkingObject(Object)constraintMatchPolicy- how should theScoreDirectorimplementation doConstraintMatch, if at all.- Returns:
- never null
- See Also:
-
getInitializingScoreTrend
InitializingScoreTrend getInitializingScoreTrend()- Returns:
- never null
-
assertScoreFromScratch
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:
-
supportsConstraintMatching
default boolean supportsConstraintMatching()
-