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,
|
public RoutingEngine(String outfileBase, String logfileBase, File segmentDir,
|
||||||
List<OsmNodeNamed> waypoints, RoutingContext rc) {
|
List<OsmNodeNamed> waypoints, RoutingContext rc) {
|
||||||
this(0, outfileBase, logfileBase, segmentDir,
|
this(outfileBase, logfileBase, segmentDir, waypoints, rc, 0);
|
||||||
waypoints, rc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public RoutingEngine(int engineMode, String outfileBase, String logfileBase, File segmentDir,
|
public RoutingEngine(String outfileBase, String logfileBase, File segmentDir,
|
||||||
List<OsmNodeNamed> waypoints, RoutingContext rc) {
|
List<OsmNodeNamed> waypoints, RoutingContext rc, int engineMode) {
|
||||||
this.segmentDir = segmentDir;
|
this.segmentDir = segmentDir;
|
||||||
this.outfileBase = outfileBase;
|
this.outfileBase = outfileBase;
|
||||||
this.logfileBase = logfileBase;
|
this.logfileBase = logfileBase;
|
||||||
|
|
|
@ -152,7 +152,7 @@ public class BRouterWorker {
|
||||||
} catch (Exception e) {
|
} 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.quite = true;
|
||||||
cr.doRun(maxRunningTime);
|
cr.doRun(maxRunningTime);
|
||||||
|
|
||||||
|
@ -248,7 +248,7 @@ public class BRouterWorker {
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<OsmNodeNamed> readLonlats(Bundle params, int mode) {
|
private List<OsmNodeNamed> readLonlats(Bundle params, int mode) {
|
||||||
List<OsmNodeNamed> wplist = new ArrayList<OsmNodeNamed>();
|
List<OsmNodeNamed> wplist = new ArrayList<>();
|
||||||
|
|
||||||
String lonLats = params.getString("lonlats");
|
String lonLats = params.getString("lonlats");
|
||||||
if (lonLats == null) throw new IllegalArgumentException("lonlats parameter not set");
|
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.quite = true;
|
||||||
cr.doRun(maxRunningTime);
|
cr.doRun(maxRunningTime);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue