From a4f499c7934d65aeb5585849863a09c6237bd4e3 Mon Sep 17 00:00:00 2001 From: Stefan Schroeder <4sschroeder@gmail.com> Date: Wed, 1 Oct 2014 19:35:00 +0200 Subject: [PATCH] add javadocs --- .../core/problem/VehicleRoutingProblem.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/jsprit-core/src/main/java/jsprit/core/problem/VehicleRoutingProblem.java b/jsprit-core/src/main/java/jsprit/core/problem/VehicleRoutingProblem.java index b15811e8..eaa43f38 100644 --- a/jsprit-core/src/main/java/jsprit/core/problem/VehicleRoutingProblem.java +++ b/jsprit-core/src/main/java/jsprit/core/problem/VehicleRoutingProblem.java @@ -739,20 +739,37 @@ public class VehicleRoutingProblem { return activityCosts; } + /** + * @return returns all location, i.e. from vehicles and jobs. + */ public Locations getLocations(){ return locations; } + /** + * @param job for which the corresponding activities needs to be returned + * @return associated activities + */ public List getActivities(Job job){ return Collections.unmodifiableList(activityMap.get(job)); } + /** + * @return total number of activities + */ public int getNuActivities(){ return nuActivities; } + /** + * @return factory that creates the activities associated to a job + */ public JobActivityFactory getJobActivityFactory(){ return jobActivityFactory; } + /** + * @param job for which the corresponding activities needs to be returned + * @return a copy of the activities that are associated to the specified job + */ public List copyAndGetActivities(Job job){ List acts = new ArrayList(); if(activityMap.containsKey(job)) {