org.optaplanner.core.impl.score.director
Class AbstractScoreDirectorFactory
java.lang.Object
org.optaplanner.core.impl.score.director.AbstractScoreDirectorFactory
- All Implemented Interfaces:
- InnerScoreDirectorFactory, ScoreDirectorFactory
- Direct Known Subclasses:
- DroolsScoreDirectorFactory, EasyScoreDirectorFactory, IncrementalScoreDirectorFactory
public abstract class AbstractScoreDirectorFactory
- extends Object
- implements InnerScoreDirectorFactory
Abstract superclass for ScoreDirectorFactory
.
- See Also:
ScoreDirectorFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final transient org.slf4j.Logger logger
solutionDescriptor
protected SolutionDescriptor solutionDescriptor
scoreDefinition
protected ScoreDefinition scoreDefinition
initializingScoreTrend
protected InitializingScoreTrend initializingScoreTrend
assertionScoreDirectorFactory
protected InnerScoreDirectorFactory assertionScoreDirectorFactory
AbstractScoreDirectorFactory
public AbstractScoreDirectorFactory()
getSolutionDescriptor
public SolutionDescriptor getSolutionDescriptor()
- Specified by:
getSolutionDescriptor
in interface InnerScoreDirectorFactory
- Returns:
- never null
setSolutionDescriptor
public void setSolutionDescriptor(SolutionDescriptor solutionDescriptor)
getScoreDefinition
public ScoreDefinition getScoreDefinition()
- Specified by:
getScoreDefinition
in interface InnerScoreDirectorFactory
- Returns:
- never null
setScoreDefinition
public void setScoreDefinition(ScoreDefinition scoreDefinition)
getInitializingScoreTrend
public InitializingScoreTrend getInitializingScoreTrend()
- Specified by:
getInitializingScoreTrend
in interface InnerScoreDirectorFactory
- Returns:
- never null
setInitializingScoreTrend
public void setInitializingScoreTrend(InitializingScoreTrend initializingScoreTrend)
getAssertionScoreDirectorFactory
public InnerScoreDirectorFactory getAssertionScoreDirectorFactory()
setAssertionScoreDirectorFactory
public void setAssertionScoreDirectorFactory(InnerScoreDirectorFactory assertionScoreDirectorFactory)
assertScoreFromScratch
public void assertScoreFromScratch(Solution solution)
- Description copied from interface:
InnerScoreDirectorFactory
- Asserts that if the
Score
is calculated for the parameter solution,
it would be equal to the Solution.getScore()
of that parameter.
- Specified by:
assertScoreFromScratch
in interface InnerScoreDirectorFactory
- Parameters:
solution
- never null- See Also:
InnerScoreDirector.assertWorkingScoreFromScratch(Score, Object)
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.