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

replace code for creating output folder with

Examples.createOutputFolder()
This commit is contained in:
oblonski 2014-02-04 21:58:30 +01:00
parent 3a160f85fe
commit bb98df01f1
24 changed files with 55 additions and 203 deletions

View file

@ -16,7 +16,6 @@
******************************************************************************/
package jsprit.examples;
import java.io.File;
import java.util.Collection;
import jsprit.analysis.toolbox.Plotter;
@ -36,6 +35,7 @@ import jsprit.core.problem.vehicle.VehicleType;
import jsprit.core.problem.vehicle.VehicleTypeImpl;
import jsprit.core.util.Coordinate;
import jsprit.core.util.Solutions;
import jsprit.util.Examples;
public class SimpleDepotBoundedPickupAndDeliveryExample {
@ -44,13 +44,7 @@ public class SimpleDepotBoundedPickupAndDeliveryExample {
/*
* some preparation - create output folder
*/
File dir = new File("output");
// if the directory does not exist, create it
if (!dir.exists()){
System.out.println("creating directory ./output");
boolean result = dir.mkdir();
if(result) System.out.println("./output created");
}
Examples.createOutputFolder();
/*
* get a vehicle type-builder and build a type with the typeId "vehicleType" and a capacity of 2