re formatting entry point
This commit is contained in:
parent
f071df5dd5
commit
4e9d3d90eb
3 changed files with 6 additions and 7 deletions
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue