Class TimeTermination

java.lang.Object
com.graphhopper.jsprit.core.algorithm.termination.TimeTermination
All Implemented Interfaces:
AlgorithmStartsListener, VehicleRoutingAlgorithmListener, PrematureAlgorithmTermination

public class TimeTermination extends Object implements PrematureAlgorithmTermination, AlgorithmStartsListener
Terminates algorithm prematurely based on specified time.

Note, TimeTermination must be registered as AlgorithmListener
TimeTermination will be activated by:

algorithm.setPrematureAlgorithmTermination(this);
algorithm.addListener(this);

Author:
stefan schroeder