Class BatchSchedulingIncrementalScoreCalculator
- java.lang.Object
-
- org.optaplanner.examples.batchscheduling.solver.score.BatchSchedulingIncrementalScoreCalculator
-
- All Implemented Interfaces:
org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<BatchSchedule,org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScore>
public class BatchSchedulingIncrementalScoreCalculator extends Object implements org.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<BatchSchedule,org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScore>
-
-
Constructor Summary
Constructors Constructor Description BatchSchedulingIncrementalScoreCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEntityAdded(Object entity)voidafterEntityRemoved(Object entity)voidafterVariableChanged(Object entity, String variableName)voidbeforeEntityAdded(Object entity)voidbeforeEntityRemoved(Object entity)voidbeforeVariableChanged(Object entity, String variableName)org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScorecalculateScore()longgetMaxEndTime()voidresetWorkingSolution(BatchSchedule schedule)voidupdateBatchEndDate(Allocation allocation)voidupdateBatchEndDate(AllocationPath allocationPath)
-
-
-
Method Detail
-
resetWorkingSolution
public void resetWorkingSolution(BatchSchedule schedule)
- Specified by:
resetWorkingSolutionin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<BatchSchedule,org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScore>
-
beforeEntityAdded
public void beforeEntityAdded(Object entity)
- Specified by:
beforeEntityAddedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<BatchSchedule,org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScore>
-
afterEntityAdded
public void afterEntityAdded(Object entity)
- Specified by:
afterEntityAddedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<BatchSchedule,org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScore>
-
beforeVariableChanged
public void beforeVariableChanged(Object entity, String variableName)
- Specified by:
beforeVariableChangedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<BatchSchedule,org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScore>
-
afterVariableChanged
public void afterVariableChanged(Object entity, String variableName)
- Specified by:
afterVariableChangedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<BatchSchedule,org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScore>
-
beforeEntityRemoved
public void beforeEntityRemoved(Object entity)
- Specified by:
beforeEntityRemovedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<BatchSchedule,org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScore>
-
afterEntityRemoved
public void afterEntityRemoved(Object entity)
- Specified by:
afterEntityRemovedin interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<BatchSchedule,org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScore>
-
updateBatchEndDate
public void updateBatchEndDate(AllocationPath allocationPath)
-
updateBatchEndDate
public void updateBatchEndDate(Allocation allocation)
-
getMaxEndTime
public long getMaxEndTime()
-
calculateScore
public org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScore calculateScore()
- Specified by:
calculateScorein interfaceorg.optaplanner.core.api.score.calculator.IncrementalScoreCalculator<BatchSchedule,org.optaplanner.core.api.score.buildin.bendablelong.BendableLongScore>
-
-