From 5b0857d6bff599214a852d1369c199264eb66e8b Mon Sep 17 00:00:00 2001 From: oblonski <4sschroeder@gmail.com> Date: Tue, 13 Aug 2013 20:55:17 +0200 Subject: [PATCH] add javaDoc to RuinStrategy --- .../main/java/algorithms/RuinStrategy.java | 39 +++++++++++++++++-- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/jsprit-core/src/main/java/algorithms/RuinStrategy.java b/jsprit-core/src/main/java/algorithms/RuinStrategy.java index 37d9e109..18c893cb 100644 --- a/jsprit-core/src/main/java/algorithms/RuinStrategy.java +++ b/jsprit-core/src/main/java/algorithms/RuinStrategy.java @@ -28,27 +28,58 @@ import basics.route.VehicleRoute; interface RuinStrategy { + /** + * Listener that listens to the ruin-process. It informs whoever is interested about start, end and about a removal of a job. + * + * @author schroeder + * + */ public static interface RuinListener { + /** + * informs about ruin-start. + * + * @param routes + */ public void ruinStarts(Collection routes); + /** + * informs about ruin-end. + * + * @param routes + * @param unassignedJobs + */ public void ruinEnds(Collection routes, Collection unassignedJobs); + /** + * informs if a {@link Job} has been removed from a {@link VehicleRoute}. + * + * @param job + * @param fromRoute + */ public void removed(Job job, VehicleRoute fromRoute); } /** - * Ruins a current solution, i.e. removes jobs from service providers and - * returns a collection of these removed, and thus unassigned, jobs. + * Ruins a current solution, i.e. a collection of vehicle-routes and + * returns a collection of removed and thus unassigned jobs. * - * @param vehicleRoutes - * @return + * @param {@link VehicleRoute} + * @return Collection of {@link Job} */ public Collection ruin(Collection vehicleRoutes); + /** + * Removes targetJob as well as its neighbors with a size of (nOfJobs2BeRemoved-1). + */ public Collection ruin(Collection vehicleRoutes, Job targetJob, int nOfJobs2BeRemoved); + /** + * Adds a ruin-listener. + * + * @param {@link RuinListener} + */ public void addListener(RuinListener ruinListener); }