Package org.onebusaway.transit_data.model

Examples of org.onebusaway.transit_data.model.ArrivalsAndDeparturesQueryBean


    /****
     *
     ****/

    ArrivalsAndDeparturesQueryBean query = new ArrivalsAndDeparturesQueryBean();
    query.setTime(t);
    query.setMinutesBefore(minutesBefore);
    query.setMinutesAfter(minutesAfter);
    query.setFrequencyMinutesBefore(minutesBefore);
    query.setFrequencyMinutesAfter(minutesAfter);

    List<ArrivalAndDepartureBean> arrivalsAndDepartures = _service.getArrivalsAndDeparturesByStopId(
        stopB.getId(), query);

    assertEquals(2, arrivalsAndDepartures.size());
View Full Code Here


    }
    if (directionId != null) {
      directionId = agencyId + "_" + directionId;
    }

    ArrivalsAndDeparturesQueryBean arrivalsQuery = new ArrivalsAndDeparturesQueryBean();
    arrivalsQuery.setTime(_time.getTime());
    arrivalsQuery.setMinutesBefore(60);
    arrivalsQuery.setMinutesAfter(90);
    arrivalsQuery.setFrequencyMinutesBefore(60);
    arrivalsQuery.setFrequencyMinutesAfter(90);
    StopWithArrivalsAndDeparturesBean stopWithArrivalsAndDepartures = _transitDataService.getStopWithArrivalsAndDepartures(
        stopId, arrivalsQuery);

    if (stopWithArrivalsAndDepartures == null) {
      throw new IllegalArgumentException("Bogus stop parameter");
View Full Code Here

    _timeWindow = timeWindowInSeconds * 1000;
  }

  @Override
  public CacheKeyInfo createKey(Object object) {
    ArrivalsAndDeparturesQueryBean query = (ArrivalsAndDeparturesQueryBean) object;
    query = new ArrivalsAndDeparturesQueryBean(query);
    query.setTime(snapTime(query.getTime()));
    return new CacheKeyInfo(query, false);
  }
View Full Code Here

  @Override
  public StopWithArrivalsAndDeparturesBean getArrivalsByStopId(String stopId)
      throws ServiceException {

    return _transitDataService.getStopWithArrivalsAndDepartures(stopId,
        new ArrivalsAndDeparturesQueryBean());
  }
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data.model.ArrivalsAndDeparturesQueryBean

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.