OptaPlanner distribution 6.2.1-SNAPSHOT

org.optaplanner.examples.vehiclerouting.solver.score
Class VehicleRoutingIncrementalScoreCalculator

java.lang.Object
  extended by org.optaplanner.core.impl.score.director.incremental.AbstractIncrementalScoreCalculator<VehicleRoutingSolution>
      extended by org.optaplanner.examples.vehiclerouting.solver.score.VehicleRoutingIncrementalScoreCalculator
All Implemented Interfaces:
IncrementalScoreCalculator<VehicleRoutingSolution>

public class VehicleRoutingIncrementalScoreCalculator
extends AbstractIncrementalScoreCalculator<VehicleRoutingSolution>


Constructor Summary
VehicleRoutingIncrementalScoreCalculator()
           
 
Method Summary
 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)
           
 HardSoftScore calculateScore()
           
 void resetWorkingSolution(VehicleRoutingSolution solution)
          There are no IncrementalScoreCalculator.beforeEntityAdded(Object) and IncrementalScoreCalculator.afterEntityAdded(Object) calls for entities that are already present in the workingSolution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleRoutingIncrementalScoreCalculator

public VehicleRoutingIncrementalScoreCalculator()
Method Detail

resetWorkingSolution

public void resetWorkingSolution(VehicleRoutingSolution solution)
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:
solution - 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 HardSoftScore calculateScore()
Returns:
never null

OptaPlanner distribution 6.2.1-SNAPSHOT

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