1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

add and test .getAddedVehicleTypes()

This commit is contained in:
oblonski 2014-01-14 09:44:38 -05:00
parent c4bd72bae8
commit 8272554e8e
2 changed files with 51 additions and 0 deletions

View file

@ -339,6 +339,15 @@ public class VehicleRoutingProblem {
return Collections.unmodifiableCollection(vehicles);
}
/**
* Gets an unmodifiable collection of already added vehicle-types.
*
* @returns collection of vehicle-types
*/
public Collection<VehicleType> getAddedVehicleTypes(){
return Collections.unmodifiableCollection(vehicleTypes);
}
/**
* Adds constraint to problem.
*