Package org.onebusaway.transit_data.model.tripplanning

Examples of org.onebusaway.transit_data.model.tripplanning.TransitShedConstraintsBean


              + " lon="
              + context.getParam(ConstraintsParameterMapping.PARAM_LON));
        }
      }

      TransitShedConstraintsBean constraints = new TransitShedConstraintsBean();
      constraints.setMaxInitialWaitTime(60*60);
      ConstraintsParameterMapping.addParamsToConstraints(context, constraints);

      long time = ConstraintsParameterMapping.getParamsAsTime(context);
      if (time == 0)
        time = System.currentTimeMillis();
View Full Code Here


    public void handleUpdate(QueryModel model) {

      _queryTextBox.setText(model.getQuery());

      _constraints = new TransitShedConstraintsBean(model.getConstraints());

      String locationValue = model.getLocationQuery();
      if ((locationValue == null || locationValue.length() == 0)
          && model.getLocation() != null) {
        setLocation(model.getLocation());
View Full Code Here

  }

  public void setQueryLocation(LatLng point) {
    String query = _queryModel.getQuery();
    long time = _queryModel.getTime();
    TransitShedConstraintsBean constraints = _queryModel.getConstraints();
    query(query, "", point, time, constraints);
  }
View Full Code Here

    String category = "";

    if (query.equals("NOTHING") || query.length() == 0)
      return;

    TransitShedConstraintsBean constraints = _queryModel.getConstraints();

    LocalSearchHandler handler = new LocalSearchHandler(constraints, result);
    handler.setEventSink(_stateEvents);
    handler.setLocalSearchProvider(_localSearchProvider);
    handler.setModel(_resultsModel);
View Full Code Here

    LatLng fromPoint = getQueryLocation();
    CoordinatePoint from = new CoordinatePoint(fromPoint.getLatitude(),
        fromPoint.getLongitude());
    CoordinatePoint to = new CoordinatePoint(place.getLat(), place.getLon());
    long time = getQueryTime();
    TransitShedConstraintsBean constraints = getQueryConstraints();

    service.getTripsBetween(from, to, time, constraints.getConstraints(),
        new TripPlanHandler());
  }
View Full Code Here

        _stateEvents.fireModelChange(new StateEvent(
            new SearchLocationUpdatedState()));

        LatLng location = model.getLocation();
        long time = model.getTime();
        TransitShedConstraintsBean constraints = model.getConstraints();
        ConstraintsBean c = constraints.getConstraints();
        WebappServiceAsync service = WebappServiceAsync.SERVICE;

        int timeSegmentSize = (c.getMaxTripDuration() 600);

        CoordinatePoint p = new CoordinatePoint(location.getLatitude(),
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data.model.tripplanning.TransitShedConstraintsBean

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.