algorithms
Interface RuinStrategy


public interface RuinStrategy

Author:
stefan schroeder

Method Summary
 void addListener(RuinListener ruinListener)
          Adds a ruin-listener.
 java.util.Collection<RuinListener> getListeners()
           
 void removeListener(RuinListener ruinListener)
           
 java.util.Collection<Job> ruin(java.util.Collection<VehicleRoute> vehicleRoutes)
          Ruins a current solution, i.e.
 java.util.Collection<Job> ruin(java.util.Collection<VehicleRoute> vehicleRoutes, Job targetJob, int nOfJobs2BeRemoved)
          Removes targetJob as well as its neighbors with a size of (nOfJobs2BeRemoved-1).
 

Method Detail

ruin

java.util.Collection<Job> ruin(java.util.Collection<VehicleRoute> vehicleRoutes)
Ruins a current solution, i.e. a collection of vehicle-routes and returns a collection of removed and thus unassigned jobs.

Parameters:
{@link - VehicleRoute}
Returns:
Collection of Job

ruin

java.util.Collection<Job> ruin(java.util.Collection<VehicleRoute> vehicleRoutes,
                               Job targetJob,
                               int nOfJobs2BeRemoved)
Removes targetJob as well as its neighbors with a size of (nOfJobs2BeRemoved-1).


addListener

void addListener(RuinListener ruinListener)
Adds a ruin-listener.

Parameters:
{@link - RuinListener}

removeListener

void removeListener(RuinListener ruinListener)

getListeners

java.util.Collection<RuinListener> getListeners()