mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
create new plotter - with more options compared to static
solutionPlotter
This commit is contained in:
parent
99e8f7a385
commit
a66be4bd0a
1 changed files with 43 additions and 0 deletions
43
jsprit-analysis/src/main/java/analysis/Plotter.java
Normal file
43
jsprit-analysis/src/main/java/analysis/Plotter.java
Normal file
|
|
@ -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){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue