mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
log_added_to_count_of_vehicles_by_vehicle_types
This commit is contained in:
parent
7251733803
commit
2f0a30339d
1 changed files with 8 additions and 0 deletions
|
|
@ -120,6 +120,14 @@ class VehicleFleetManagerImpl implements VehicleFleetManager {
|
||||||
vehicleArr[v.getIndex()]=v;
|
vehicleArr[v.getIndex()]=v;
|
||||||
addVehicle(v);
|
addVehicle(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StringBuilder stringBuilder = new StringBuilder();
|
||||||
|
for (int i = 0; i < vehicleTypes.length; ++i) {
|
||||||
|
if (!vehicleTypes[i].vehicleList.isEmpty()) {
|
||||||
|
stringBuilder.append(vehicleTypes[i].vehicleList.size() + " vehicles of type: " + vehicleTypes[i].vehicleList.get(0).getVehicleTypeIdentifier());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
logger.info("next vehicle types was found: {}", stringBuilder.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addVehicle(Vehicle v) {
|
private void addVehicle(Vehicle v) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue