re formatting entry point

This commit is contained in:
afischerdev 2023-05-16 10:35:41 +02:00
parent f071df5dd5
commit 4e9d3d90eb
3 changed files with 6 additions and 7 deletions

View file

@ -81,12 +81,11 @@ public class RoutingEngine extends Thread {
public RoutingEngine(String outfileBase, String logfileBase, File segmentDir,
List<OsmNodeNamed> waypoints, RoutingContext rc) {
this(0, outfileBase, logfileBase, segmentDir,
waypoints, rc);
this(outfileBase, logfileBase, segmentDir, waypoints, rc, 0);
}
public RoutingEngine(int engineMode, String outfileBase, String logfileBase, File segmentDir,
List<OsmNodeNamed> waypoints, RoutingContext rc) {
public RoutingEngine(String outfileBase, String logfileBase, File segmentDir,
List<OsmNodeNamed> waypoints, RoutingContext rc, int engineMode) {
this.segmentDir = segmentDir;
this.outfileBase = outfileBase;
this.logfileBase = logfileBase;

View file

@ -152,7 +152,7 @@ public class BRouterWorker {
} catch (Exception e) {
}
RoutingEngine cr = new RoutingEngine(engineMode, null, null, segmentDir, waypoints, rc);
RoutingEngine cr = new RoutingEngine(null, null, segmentDir, waypoints, rc, engineMode);
cr.quite = true;
cr.doRun(maxRunningTime);
@ -248,7 +248,7 @@ public class BRouterWorker {
}
private List<OsmNodeNamed> readLonlats(Bundle params, int mode) {
List<OsmNodeNamed> wplist = new ArrayList<OsmNodeNamed>();
List<OsmNodeNamed> wplist = new ArrayList<>();
String lonLats = params.getString("lonlats");
if (lonLats == null) throw new IllegalArgumentException("lonlats parameter not set");

View file

@ -213,7 +213,7 @@ public class RouteServer extends Thread implements Comparable<RouteServer> {
}
}
}
cr = new RoutingEngine(engineMode, null, null, serviceContext.segmentDir, wplist, rc);
cr = new RoutingEngine(null, null, serviceContext.segmentDir, wplist, rc, engineMode);
cr.quite = true;
cr.doRun(maxRunningTime);