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

replace createOutputFolder by code in examples.SimpleExample

This commit is contained in:
Stefan Schroeder 2014-06-26 12:58:33 +02:00
parent be5918a67d
commit 0102cf8bdf

View file

@ -16,6 +16,7 @@
******************************************************************************/
package jsprit.examples;
import java.io.File;
import java.util.Collection;
import jsprit.analysis.toolbox.GraphStreamViewer;
@ -46,7 +47,13 @@ public class SimpleExample {
/*
* some preparation - create output folder
*/
Examples.createOutputFolder();
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");
}
/*
* get a vehicle type-builder and build a type with the typeId "vehicleType" and one capacity dimension, i.e. weight, and capacity dimension value of 2