Class ConstraintStreamScoreDirectorFactory<Solution_,Score_ extends Score<Score_>>
- java.lang.Object
-
- org.optaplanner.core.impl.score.director.AbstractScoreDirectorFactory<Solution_,Score_>
-
- org.optaplanner.core.impl.score.director.stream.ConstraintStreamScoreDirectorFactory<Solution_,Score_>
-
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotationScore_- the score type to go with the solution
- All Implemented Interfaces:
InnerScoreDirectorFactory<Solution_,Score_>,ScoreDirectorFactory<Solution_>
public class ConstraintStreamScoreDirectorFactory<Solution_,Score_ extends Score<Score_>> extends AbstractScoreDirectorFactory<Solution_,Score_>
FP streams implementation ofScoreDirectorFactory.
-
-
Field Summary
-
Fields inherited from class org.optaplanner.core.impl.score.director.AbstractScoreDirectorFactory
assertClonedSolution, assertionScoreDirectorFactory, initializingScoreTrend, logger, solutionDescriptor
-
-
Constructor Summary
Constructors Constructor Description ConstraintStreamScoreDirectorFactory(SolutionDescriptor<Solution_> solutionDescriptor, ConstraintProvider constraintProvider, ConstraintStreamImplType constraintStreamImplType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstraintStreamScoreDirector<Solution_,Score_>buildScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference)LikeInnerScoreDirectorFactory.buildScoreDirector(), but optionally disablesConstraintMatchtracking and look up for more performance (presuming theScoreDirectorimplementation actually supports it to begin with).Constraint[]getConstraints()ConstraintSession<Solution_,Score_>newConstraintStreamingSession(boolean constraintMatchEnabled, Solution_ workingSolution)-
Methods inherited from class org.optaplanner.core.impl.score.director.AbstractScoreDirectorFactory
assertScoreFromScratch, buildScoreDirector, getAssertionScoreDirectorFactory, getInitializingScoreTrend, getScoreDefinition, getSolutionDescriptor, isAssertClonedSolution, setAssertClonedSolution, setAssertionScoreDirectorFactory, setInitializingScoreTrend
-
-
-
-
Constructor Detail
-
ConstraintStreamScoreDirectorFactory
public ConstraintStreamScoreDirectorFactory(SolutionDescriptor<Solution_> solutionDescriptor, ConstraintProvider constraintProvider, ConstraintStreamImplType constraintStreamImplType)
-
-
Method Detail
-
buildScoreDirector
public ConstraintStreamScoreDirector<Solution_,Score_> buildScoreDirector(boolean lookUpEnabled, boolean constraintMatchEnabledPreference)
Description copied from interface:InnerScoreDirectorFactoryLikeInnerScoreDirectorFactory.buildScoreDirector(), 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:
InnerScoreDirector.isConstraintMatchEnabled(),InnerScoreDirector.getConstraintMatchTotalMap()
-
newConstraintStreamingSession
public ConstraintSession<Solution_,Score_> newConstraintStreamingSession(boolean constraintMatchEnabled, Solution_ workingSolution)
-
getConstraints
public Constraint[] getConstraints()
-
-