Package org.opentripplanner.routing.impl

Examples of org.opentripplanner.routing.impl.LongDistancePathService


        routingRequest = new RoutingRequest();
        sptServiceFactory = new GenericAStarFactory();

        // Choose a PathService to wrap the SPTService, depending on expected maximum path lengths
        if (params.longDistance) {
            LongDistancePathService pathService = new LongDistancePathService(graphService, sptServiceFactory);
            pathService.timeout = 10;
            this.pathService = pathService;
        } else {
            RetryingPathServiceImpl pathService = new RetryingPathServiceImpl(graphService, sptServiceFactory);
            pathService.setFirstPathTimeout(10.0);
            pathService.setMultiPathTimeout(1.0);
            this.pathService = pathService;
            // cpf.bind(RemainingWeightHeuristicFactory.class,
            //        new DefaultRemainingWeightHeuristicFactoryImpl());
        }
View Full Code Here


    return pane;
  }
 
  protected void setLongDistanceMode(boolean selected) {
    if( selected ){
      this.pathservice = new LongDistancePathService(graphService, sptServiceFactory);
    } else {
      this.pathservice = new ParetoPathService(graphService, sptServiceFactory);
    }
   
  }
View Full Code Here

            alertsUpdateHandler.update(feedMessage);
        } catch (Exception exception) {}

        genericAStar = new GenericAStarFactory();
        if (isLongDistance()) {
            pathService = new LongDistancePathService(null, genericAStar);
        } else {
            pathService = new RetryingPathServiceImpl(null, genericAStar);
        }
        planGenerator = new PlanGenerator(null, pathService);
    }
View Full Code Here

TOP

Related Classes of org.opentripplanner.routing.impl.LongDistancePathService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.