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, boolean constraintMatchEnabledPreference) LikebuildScoreDirector(boolean, boolean), but makes the score director a derived one.Creates a newScoreDirectorinstance.default InnerScoreDirector<Solution_,Score_> buildScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference) LikebuildScoreDirector(), but optionally disablesConstraintMatchtracking and look up for more performance (presuming theScoreDirectorimplementation actually supports it to begin with).buildScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference, boolean expectShadowVariablesInCorrectState) LikebuildScoreDirector(), but optionally disablesConstraintMatchtracking and look up for more performance (presuming theScoreDirectorimplementation actually supports it to begin with).default boolean
-
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:ScoreDirectorFactoryCreates a newScoreDirectorinstance.- Specified by:
buildScoreDirectorin interfaceScoreDirectorFactory<Solution_>- Returns:
- never null
-
buildScoreDirector
default InnerScoreDirector<Solution_,Score_> 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:
-
buildScoreDirector
InnerScoreDirector<Solution_,Score_> buildScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference, boolean expectShadowVariablesInCorrectState) 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.expectShadowVariablesInCorrectState- true, unless you have an exceptional reason. SeeInnerScoreDirector.expectShadowVariablesInCorrectState()for details.- Returns:
- never null
- See Also:
-
buildDerivedScoreDirector
default InnerScoreDirector<Solution_,Score_> buildDerivedScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference) LikebuildScoreDirector(boolean, boolean), 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)constraintMatchEnabledPreference- false if aScoreDirectorimplementation should not doConstraintMatchtracking even if it supports it.- 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()
-