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:
parent
cce3add991
commit
b4583a09e8
1 changed files with 6 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue