basics.algo
Class TimeBreaker

java.lang.Object
  extended by basics.algo.TimeBreaker
All Implemented Interfaces:
AlgorithmStartsListener, PrematureAlgorithmBreaker, VehicleRoutingAlgorithmListener

public class TimeBreaker
extends java.lang.Object
implements PrematureAlgorithmBreaker, AlgorithmStartsListener


Constructor Summary
TimeBreaker(double time)
           
 
Method Summary
 void informAlgorithmStarts(VehicleRoutingProblem problem, VehicleRoutingAlgorithm algorithm, java.util.Collection<VehicleRoutingProblemSolution> solutions)
           
 boolean isPrematureBreak(SearchStrategy.DiscoveredSolution discoveredSolution)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeBreaker

public TimeBreaker(double time)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isPrematureBreak

public boolean isPrematureBreak(SearchStrategy.DiscoveredSolution discoveredSolution)
Specified by:
isPrematureBreak in interface PrematureAlgorithmBreaker

informAlgorithmStarts

public void informAlgorithmStarts(VehicleRoutingProblem problem,
                                  VehicleRoutingAlgorithm algorithm,
                                  java.util.Collection<VehicleRoutingProblemSolution> solutions)
Specified by:
informAlgorithmStarts in interface AlgorithmStartsListener