mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
add javadocs
This commit is contained in:
parent
88ee38b229
commit
a4f499c793
1 changed files with 17 additions and 0 deletions
|
|
@ -739,20 +739,37 @@ public class VehicleRoutingProblem {
|
||||||
return activityCosts;
|
return activityCosts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return returns all location, i.e. from vehicles and jobs.
|
||||||
|
*/
|
||||||
public Locations getLocations(){
|
public Locations getLocations(){
|
||||||
return locations;
|
return locations;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param job for which the corresponding activities needs to be returned
|
||||||
|
* @return associated activities
|
||||||
|
*/
|
||||||
public List<AbstractActivity> getActivities(Job job){
|
public List<AbstractActivity> getActivities(Job job){
|
||||||
return Collections.unmodifiableList(activityMap.get(job));
|
return Collections.unmodifiableList(activityMap.get(job));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return total number of activities
|
||||||
|
*/
|
||||||
public int getNuActivities(){ return nuActivities; }
|
public int getNuActivities(){ return nuActivities; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return factory that creates the activities associated to a job
|
||||||
|
*/
|
||||||
public JobActivityFactory getJobActivityFactory(){
|
public JobActivityFactory getJobActivityFactory(){
|
||||||
return jobActivityFactory;
|
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<AbstractActivity> copyAndGetActivities(Job job){
|
public List<AbstractActivity> copyAndGetActivities(Job job){
|
||||||
List<AbstractActivity> acts = new ArrayList<AbstractActivity>();
|
List<AbstractActivity> acts = new ArrayList<AbstractActivity>();
|
||||||
if(activityMap.containsKey(job)) {
|
if(activityMap.containsKey(job)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue