Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.0.0.CR4-Pre1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.optaplanner.core.impl.score.director
Class AbstractScoreDirectorFactory

    java.lang.Object
      org.optaplanner.core.impl.score.director.AbstractScoreDirectorFactory

All Implemented Interfaces:
  ScoreDirectorFactory

Direct Known Subclasses:
  DroolsScoreDirectorFactory, IncrementalScoreDirectorFactory, SimpleScoreDirectorFactory

    public abstract class AbstractScoreDirectorFactory

extends Object
implements ScoreDirectorFactory

Abstract superclass for `ScoreDirectorFactory`.

See Also:
  `ScoreDirectorFactory`

Field Summary
`protected ScoreDirectorFactory` | `assertionScoreDirectorFactory`
`protected org.slf4j.Logger` | `logger`
`protected ScoreDefinition` | `scoreDefinition`
`protected SolutionDescriptor` | `solutionDescriptor`

Constructor Summary
`AbstractScoreDirectorFactory()`

Method Summary
`void` | `assertScoreFromScratch(Solution solution)` Asserts that if the `Score` is calculated for the parameter solution, it would be equal to the `Solution.getScore()` of that parameter.
`ScoreDirectorFactory` | `getAssertionScoreDirectorFactory()`
`ScoreDefinition` | `getScoreDefinition()`
`SolutionDescriptor` | `getSolutionDescriptor()`
`void` | `setAssertionScoreDirectorFactory(ScoreDirectorFactory assertionScoreDirectorFactory)`
`void` | `setScoreDefinition(ScoreDefinition scoreDefinition)`
`void` | `setSolutionDescriptor(SolutionDescriptor solutionDescriptor)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface org.optaplanner.core.impl.score.director.ScoreDirectorFactory
`buildScoreDirector`

Field Detail

### logger

    protected final transient org.slf4j.Logger logger

### solutionDescriptor

    protected SolutionDescriptor solutionDescriptor

### scoreDefinition

    protected ScoreDefinition scoreDefinition

### assertionScoreDirectorFactory

    protected ScoreDirectorFactory assertionScoreDirectorFactory

Constructor Detail

### AbstractScoreDirectorFactory

    public AbstractScoreDirectorFactory()

Method Detail

### getSolutionDescriptor

    public SolutionDescriptor getSolutionDescriptor()

  Specified by:
    `getSolutionDescriptor` in interface `ScoreDirectorFactory`
  Returns:
    never null

### setSolutionDescriptor

    public void setSolutionDescriptor(SolutionDescriptor solutionDescriptor)

### getScoreDefinition

    public ScoreDefinition getScoreDefinition()

  Specified by:
    `getScoreDefinition` in interface `ScoreDirectorFactory`
  Returns:
    never null

### setScoreDefinition

    public void setScoreDefinition(ScoreDefinition scoreDefinition)

### getAssertionScoreDirectorFactory

    public ScoreDirectorFactory getAssertionScoreDirectorFactory()

### setAssertionScoreDirectorFactory

    public void setAssertionScoreDirectorFactory(ScoreDirectorFactory assertionScoreDirectorFactory)

### assertScoreFromScratch

    public void assertScoreFromScratch(Solution solution)

  Description copied from interface: `ScoreDirectorFactory`
  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 `ScoreDirectorFactory`
  Parameters:
    `solution` - never null
  See Also:
    `ScoreDirector#assertWorkingScoreFromScratch(Score)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.0.0.CR4-Pre1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.