@Override protected Path extractPath() { return new Path(graph, weighting). setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
@Override protected Path extractPath() { if (currEdge == null || !finished()) { return createEmptyPath(); } return new Path(graph, weighting).setSPTEntry(currEdge).extract(); }
@Override public Path extractPath() { PathNative p = new PathNative(graph, weighting, parents, edgeIds); if (endNode >= 0) p.setWeight(weights[endNode]); p.setFromNode(fromNode); // return 'not found' if invalid endNode or limit reached if (endNode < 0 || isWeightLimitExceeded()) return p; return p.setEndNode(endNode).extract(); }
@Override protected Path extractPath() { if (currEdge == null || !finished()) return createEmptyPath(); return new Path(graph, weighting). setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
setSPTEntryTo(toSPTEntry).setSPTEntry(fromSPTEntry). setWeight(weight); path.extract();
e1.parent.parent = new SPTEntry(-1, 0, 1); path.setSPTEntry(e1); path.extract(); e1.parent.parent = new SPTEntry(-1, 0, 1); path.setSPTEntry(e1); path.extract(); instr = path.calcInstructions(tr); res = instr.createJson(); e1.parent.parent = new SPTEntry(-1, 2, 1); path.setSPTEntry(e1); path.extract();
e1.parent.parent.parent.parent = new SPTEntry(-1, 0, 1); path.setSPTEntry(e1); path.extract();
@Override protected Path extractPath() { return new Path(graph, weighting). setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
@Override protected Path extractPath() { return new Path(graph, flagEncoder).setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
@Override protected Path extractPath() { return new Path(graph, weighting). setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
@Override protected Path extractPath() { if (currEdge == null || !finished()) { return createEmptyPath(); } return new Path(graph, weighting).setSPTEntry(currEdge).extract(); }
@Override protected Path extractPath() { if (currEdge == null || !finished()) return createEmptyPath(); return new Path(graph, weighting). setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
@Override public Path extractPath() { PathNative p = new PathNative(graph, weighting, parents, edgeIds); if (endNode >= 0) p.setWeight(weights[endNode]); p.setFromNode(fromNode); // return 'not found' if invalid endNode or limit reached if (endNode < 0 || isWeightLimitExceeded()) return p; return p.setEndNode(endNode).extract(); }
@Override public Path extractPath() { PathNative p = new PathNative(graph, weighting, parents, edgeIds); if (endNode >= 0) p.setWeight(weights[endNode]); p.setFromNode(fromNode); // return 'not found' if invalid endNode or limit reached if (endNode < 0 || isWeightLimitExceeded()) return p; return p.setEndNode(endNode).extract(); }
@Override protected Path extractPath() { if (currEdge == null || !finished()) return createEmptyPath(); return new Path(graph, flagEncoder).setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
@Override public Path extractPath() { PathNative p = new PathNative(graph, flagEncoder, parents, edgeIds); if (endNode >= 0) p.setWeight(weights[endNode]); p.setFromNode(fromNode); // return 'not found' if invalid endNode or limit reached if (endNode < 0 || isWeightLimitExceeded()) return p; return p.setEndNode(endNode).extract(); }
@Override protected Path extractPath() { if (currEdge == null || !finished()) return createEmptyPath(); return new Path(graph, weighting). setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); }
public Path extractPath(Collection<QueryResult> endQRs) { // pick QueryResult closest to last GPX entry // => prefer QueryResults close to the edge double bestWeight = Double.MAX_VALUE; for (QueryResult qr : endQRs) { int node = qr.getClosestNode(); SPTEntry tmp1 = fromMap.get(node); double w = weighting.getMinWeight(qr.getQueryDistance() * maxSearchWeightMultiplier); if (tmp1 != null && bestWeight > tmp1.weight + w) { currEdge = tmp1; bestWeight = tmp1.weight + w; } } return new Path(graph, flagEncoder).setWeight(currEdge.weight).setSPTEntry(currEdge).extract(); } }
setSPTEntryTo(toSPTEntry).setSPTEntry(fromSPTEntry). setWeight(weight); path.extract();
setSPTEntryTo(toSPTEntry).setSPTEntry(fromSPTEntry). setWeight(weight); path.extract();