public FastMultiNodeDijkstraFactory(final boolean usePreProcessData, final boolean searchAllEndNodes) { this.usePreProcessData = usePreProcessData; this.searchAllEndNodes = searchAllEndNodes; this.routingNetworkFactory = new ArrayRoutingNetworkFactory(); }
private FastAStarEuclideanFactory(final FastRouterType fastRouterType, double overdoFactor) { this.overdoFactor = overdoFactor; switch (fastRouterType) { case ARRAY: this.routingNetworkFactory = new ArrayRoutingNetworkFactory(); break; case POINTER: throw new RuntimeException("PointerRoutingNetworks are no longer supported. Use ArrayRoutingNetworks instead. Aborting!"); default: throw new RuntimeException("Undefined FastRouterType: " + fastRouterType); } }
private FastAStarLandmarksFactory(final FastRouterType fastRouterType, int numberOfThreads) { switch (fastRouterType) { case ARRAY: this.routingNetworkFactory = new ArrayRoutingNetworkFactory(); break; case POINTER: throw new RuntimeException("PointerRoutingNetworks are no longer supported. Use ArrayRoutingNetworks instead. Aborting!"); default: throw new RuntimeException("Undefined FastRouterType: " + fastRouterType); } this.nThreads = numberOfThreads; }
private FastDijkstraFactory(final boolean usePreProcessData, final FastRouterType fastRouterType) { this.usePreProcessData = usePreProcessData; switch (fastRouterType) { case ARRAY: this.routingNetworkFactory = new ArrayRoutingNetworkFactory(); break; case POINTER: throw new RuntimeException("PointerRoutingNetworks are no longer supported. " + "Use ArrayRoutingNetworks instead. Aborting!"); default: throw new RuntimeException("Undefined FastRouterType: " + fastRouterType); } }