org.optaplanner.examples.tsp.solver.score
Class TspIncrementalScoreCalculator
java.lang.Object
org.optaplanner.core.impl.score.director.incremental.AbstractIncrementalScoreCalculator<TravelingSalesmanTour>
org.optaplanner.examples.tsp.solver.score.TspIncrementalScoreCalculator
- All Implemented Interfaces:
- IncrementalScoreCalculator<TravelingSalesmanTour>
public class TspIncrementalScoreCalculator
- extends AbstractIncrementalScoreCalculator<TravelingSalesmanTour>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TspIncrementalScoreCalculator
public TspIncrementalScoreCalculator()
resetWorkingSolution
public void resetWorkingSolution(TravelingSalesmanTour tour)
- Description copied from interface:
IncrementalScoreCalculator
- There are no
IncrementalScoreCalculator.beforeEntityAdded(Object)
and IncrementalScoreCalculator.afterEntityAdded(Object)
calls
for entities that are already present in the workingSolution.
- Parameters:
tour
- never null
beforeEntityAdded
public void beforeEntityAdded(Object entity)
afterEntityAdded
public void afterEntityAdded(Object entity)
beforeVariableChanged
public void beforeVariableChanged(Object entity,
String variableName)
afterVariableChanged
public void afterVariableChanged(Object entity,
String variableName)
beforeEntityRemoved
public void beforeEntityRemoved(Object entity)
afterEntityRemoved
public void afterEntityRemoved(Object entity)
calculateScore
public SimpleLongScore calculateScore()
- Returns:
- never null
Copyright © 2006-2015 JBoss by Red Hat. All Rights Reserved.