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)) {