From a66be4bd0accfa7bb235ca1f640c42a7c8f0f9f1 Mon Sep 17 00:00:00 2001 From: Stefan Schroeder <4sschroeder@gmail.com> Date: Wed, 28 Aug 2013 18:21:36 +0200 Subject: [PATCH] create new plotter - with more options compared to static solutionPlotter --- .../src/main/java/analysis/Plotter.java | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 jsprit-analysis/src/main/java/analysis/Plotter.java diff --git a/jsprit-analysis/src/main/java/analysis/Plotter.java b/jsprit-analysis/src/main/java/analysis/Plotter.java new file mode 100644 index 00000000..34f44af4 --- /dev/null +++ b/jsprit-analysis/src/main/java/analysis/Plotter.java @@ -0,0 +1,43 @@ +package analysis; + +import basics.VehicleRoutingProblem; +import basics.VehicleRoutingProblemSolution; + +public class Plotter { + + public static enum Label { + ID, SIZE, NO_LABEL + } + + private boolean showFirstActivity = true; + + private Label label = Label.SIZE; + + private VehicleRoutingProblem vrp; + + private VehicleRoutingProblemSolution solution; + + public void setShowFirstActivity(boolean show){ + showFirstActivity = show; + } + + public void setLabel(Label label){ + this.label = label; + } + + public Plotter(VehicleRoutingProblem vrp) { + super(); + this.vrp = vrp; + } + + public Plotter(VehicleRoutingProblem vrp, VehicleRoutingProblemSolution solution) { + super(); + this.vrp = vrp; + this.solution = solution; + } + + public void plot(String pngFileName, String plotTitle){ + + } + +}