private void readDepotList() throws IOException {
readConstantLine("DEPOT_SECTION");
depotList = new ArrayList<VrpDepot>(locationListSize);
long id = readLongValue();
while (id != -1) {
VrpDepot depot = new VrpDepot();
depot.setId(id);
VrpLocation location = locationMap.get(id);
if (location == null) {
throw new IllegalArgumentException("The depot with id (" + id
+ ") has no location (" + location + ").");
}
depot.setLocation(location);
depotList.add(depot);
id = readLongValue();
}
schedule.setDepotList(depotList);
}