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

Update VrpXMLReader.java

allow VrpXMLReader to read latestArrival from xml config file
This commit is contained in:
Zhaoyu Zhong 2019-07-03 14:22:26 +08:00
parent cce3add991
commit b4583a09e8

View file

@ -683,6 +683,12 @@ public class VrpXMLReader {
if (start != null) builder.setEarliestStart(Double.parseDouble(start));
if (end != null) builder.setLatestArrival(Double.parseDouble(end));
// read latestArrival
String latestArrival = vehicleConfig.getString("latestArrival");
if (latestArrival != null) {
builder.setLatestArrival(Double.parseDouble(latestArrival));
}
//read return2depot
String returnToDepot = vehicleConfig.getString("returnToDepot");
if (returnToDepot != null) {