public class InvestmentIncrementalScoreCalculator extends Object implements org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<InvestmentSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
InvestmentIncrementalScoreCalculator() |
| 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.hardsoftlong.HardSoftLongScore |
calculateScore() |
void |
resetWorkingSolution(InvestmentSolution solution) |
public InvestmentIncrementalScoreCalculator()
public void resetWorkingSolution(InvestmentSolution solution)
resetWorkingSolution in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<InvestmentSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>public void beforeEntityAdded(Object entity)
beforeEntityAdded in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<InvestmentSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>public void afterEntityAdded(Object entity)
afterEntityAdded in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<InvestmentSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>public void beforeVariableChanged(Object entity, String variableName)
beforeVariableChanged in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<InvestmentSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>public void afterVariableChanged(Object entity, String variableName)
afterVariableChanged in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<InvestmentSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>public void beforeEntityRemoved(Object entity)
beforeEntityRemoved in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<InvestmentSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>public void afterEntityRemoved(Object entity)
afterEntityRemoved in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<InvestmentSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>public org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore calculateScore()
calculateScore in interface org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<InvestmentSolution,org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScore>Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.