OptaPlanner distribution 6.2.0.CR2

org.optaplanner.examples.vehiclerouting.domain.solver.nearby
Class CustomerNearbyDistanceMeter

java.lang.Object
  extended by org.optaplanner.examples.vehiclerouting.domain.solver.nearby.CustomerNearbyDistanceMeter
All Implemented Interfaces:
NearbyDistanceMeter<Customer,Standstill>

public class CustomerNearbyDistanceMeter
extends Object
implements NearbyDistanceMeter<Customer,Standstill>


Constructor Summary
CustomerNearbyDistanceMeter()
           
 
Method Summary
 double getNearbyDistance(Customer origin, Standstill destination)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerNearbyDistanceMeter

public CustomerNearbyDistanceMeter()
Method Detail

getNearbyDistance

public double getNearbyDistance(Customer origin,
                                Standstill destination)
Specified by:
getNearbyDistance in interface NearbyDistanceMeter<Customer,Standstill>
Parameters:
origin - never null
destination - never null
Returns:
Preferably always >= 0.0. If origin == destination, it usually returns 0.0.

OptaPlanner distribution 6.2.0.CR2

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