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

modified method .plotShipments(..) in analysis.toolbox.Plotter to allow

chaining
This commit is contained in:
oblonski 2014-05-07 10:00:02 +02:00
parent 0bcfc142d5
commit 40a1e45a0d

View file

@ -105,6 +105,25 @@ public class Plotter {
private BoundingBox boundingBox = null;
public Plotter(VehicleRoutingProblem vrp) {
super();
this.vrp = vrp;
}
public Plotter(VehicleRoutingProblem vrp, VehicleRoutingProblemSolution solution) {
super();
this.vrp = vrp;
this.routes = solution.getRoutes();
plotSolutionAsWell = true;
}
public Plotter(VehicleRoutingProblem vrp, Collection<VehicleRoute> routes) {
super();
this.vrp = vrp;
this.routes = routes;
plotSolutionAsWell = true;
}
public Plotter setShowFirstActivity(boolean show){
showFirstActivity = show;
return this;
@ -120,23 +139,9 @@ public class Plotter {
return this;
}
public Plotter(VehicleRoutingProblem vrp) {
super();
this.vrp = vrp;
}
public Plotter(VehicleRoutingProblem vrp, VehicleRoutingProblemSolution solution) {
super();
this.vrp = vrp;
this.routes = solution.getRoutes();
plotSolutionAsWell = true;
}
public Plotter(VehicleRoutingProblem vrp, Collection<VehicleRoute> routes) {
super();
this.vrp = vrp;
this.routes = routes;
plotSolutionAsWell = true;
public Plotter plotShipments(boolean plotShipments) {
this.plotShipments = plotShipments;
return this;
}
public void plot(String pngFileName, String plotTitle){
@ -576,8 +581,4 @@ public class Plotter {
// };
}
public void plotShipments(boolean plotShipments) {
this.plotShipments = plotShipments;
}
}