public class CheapTimeIncrementalScoreCalculator extends Object implements org.optaplanner.core.api.score.calculator.ConstraintMatchAwareIncrementalScoreCalculator<CheapTimeSolution,org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONSTRAINT_PACKAGE |
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
CheapTimeIncrementalScoreCalculator() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterEntityAdded(Object entity) |
void |
afterEntityRemoved(Object entity) |
void |
afterVariableChanged(Object entity,
String variableName) |
void |
beforeEntityAdded(Object entity) |
void |
beforeEntityRemoved(Object entity) |
void |
beforeVariableChanged(Object entity,
String variableName) |
org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore |
calculateScore() |
Collection<org.optaplanner.core.api.score.constraint.ConstraintMatchTotal> |
getConstraintMatchTotals() |
Map<Object,org.optaplanner.core.api.score.constraint.Indictment> |
getIndictmentMap() |
void |
resetWorkingSolution(CheapTimeSolution solution) |
void |
resetWorkingSolution(CheapTimeSolution workingSolution,
boolean constraintMatchEnabled) |
protected static final String CONSTRAINT_PACKAGE
protected final transient org.slf4j.Logger logger
public void resetWorkingSolution(CheapTimeSolution solution)
resetWorkingSolution in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<CheapTimeSolution,org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore>public void beforeEntityAdded(Object entity)
beforeEntityAdded in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<CheapTimeSolution,org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore>public void afterEntityAdded(Object entity)
afterEntityAdded in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<CheapTimeSolution,org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore>public void beforeVariableChanged(Object entity, String variableName)
beforeVariableChanged in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<CheapTimeSolution,org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore>public void afterVariableChanged(Object entity, String variableName)
afterVariableChanged in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<CheapTimeSolution,org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore>public void beforeEntityRemoved(Object entity)
beforeEntityRemoved in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<CheapTimeSolution,org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore>public void afterEntityRemoved(Object entity)
afterEntityRemoved in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<CheapTimeSolution,org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore>public org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore calculateScore()
calculateScore in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<CheapTimeSolution,org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore>public void resetWorkingSolution(CheapTimeSolution workingSolution, boolean constraintMatchEnabled)
resetWorkingSolution in interface org.optaplanner.core.api.score.calculator.ConstraintMatchAwareIncrementalScoreCalculator<CheapTimeSolution,org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore>public Collection<org.optaplanner.core.api.score.constraint.ConstraintMatchTotal> getConstraintMatchTotals()
getConstraintMatchTotals in interface org.optaplanner.core.api.score.calculator.ConstraintMatchAwareIncrementalScoreCalculator<CheapTimeSolution,org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore>public Map<Object,org.optaplanner.core.api.score.constraint.Indictment> getIndictmentMap()
getIndictmentMap in interface org.optaplanner.core.api.score.calculator.ConstraintMatchAwareIncrementalScoreCalculator<CheapTimeSolution,org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore>Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.