Package org.onebusaway.transit_data.model.trips

Examples of org.onebusaway.transit_data.model.trips.TripDetailsInclusionBean


          record.getCurrentLocationLon()));

    bean.setVehicleId(AgencyAndIdLibrary.convertToString(record.getVehicleId()));

    TripDetailsBean details = _tripDetailsBeanService.getTripForVehicle(
        record.getVehicleId(), time, new TripDetailsInclusionBean(true, false,
            true));
    if (details != null && details.getStatus() != null) {
      bean.setTrip(details.getTrip());
      bean.setTripStatus(details.getStatus());
    }
View Full Code Here


    TripsForAgencyQueryBean query = new TripsForAgencyQueryBean();
    query.setAgencyId(_id);
    query.setTime(time);
    query.setMaxCount(_maxCount.getMaxCount());

    TripDetailsInclusionBean inclusion = query.getInclusion();
    inclusion.setIncludeTripBean(_includeTrip);
    inclusion.setIncludeTripStatus(_includeStatus);
    inclusion.setIncludeTripSchedule(_includeSchedule);

    BeanFactoryV2 factory = getBeanFactoryV2();

    try {
      ListBean<TripDetailsBean> trips = _service.getTripsForAgency(query);
View Full Code Here

    TripsForRouteQueryBean query = new TripsForRouteQueryBean();
    query.setRouteId(_id);
    query.setTime(time);
    query.setMaxCount(_maxCount.getMaxCount());

    TripDetailsInclusionBean inclusion = query.getInclusion();
    inclusion.setIncludeTripBean(_includeTrip);
    inclusion.setIncludeTripSchedule(_includeSchedule);
    inclusion.setIncludeTripStatus(_includeStatus);

    BeanFactoryV2 factory = getBeanFactoryV2();

    try {
      ListBean<TripDetailsBean> trips = _service.getTripsForRoute(query);
View Full Code Here

    if( _serviceDate != null)
      query.setServiceDate(_serviceDate.getTime());
    query.setTime(_time.getTime());
    query.setVehicleId(_vehicleId);
   
    TripDetailsInclusionBean inclusion = query.getInclusion();
    inclusion.setIncludeTripBean(_includeTrip);
    inclusion.setIncludeTripSchedule(_includeSchedule);
    inclusion.setIncludeTripStatus(_includeStatus);

    TripDetailsBean trip = _service.getSingleTripDetails(query);

    if (trip == null)
      return setResourceNotFoundResponse();
View Full Code Here

    for (CoordinateBounds bounds : allBounds) {
      query.setBounds(bounds);
      query.setTime(System.currentTimeMillis());
      query.setMaxCount(Integer.MAX_VALUE);
     
      TripDetailsInclusionBean inclusion = query.getInclusion();
      inclusion.setIncludeTripBean(true);
      ListBean<TripDetailsBean> allTrips =  getTDS().getTripsForBounds(query);
      if (allTrips == null) {
        continue;
      }
 
View Full Code Here

    if( time == 0)
      time = System.currentTimeMillis();
    if( time < 0)
      time = System.currentTimeMillis() - time * 1000;
   
    TripDetailsInclusionBean inclusion = new TripDetailsInclusionBean();
    inclusion.setIncludeTripBean(false);
    inclusion.setIncludeTripSchedule(false);
    inclusion.setIncludeTripStatus(true);
   
    TripDetailsBean details = _service.getTripForVehicle(vid, time,inclusion);
   
    if( "html".equals(format))
      return new ModelAndView("closest-stop-for-vehicle-html.jspx", "stopTime", details);
View Full Code Here

    TripsForBoundsQueryBean query = new TripsForBoundsQueryBean();
    query.setBounds(bounds);
    query.setTime(time);
    query.setMaxCount(_maxCount.getMaxCount());

    TripDetailsInclusionBean inclusion = query.getInclusion();
    inclusion.setIncludeTripBean(_includeTrip);
    inclusion.setIncludeTripSchedule(_includeSchedule);
    inclusion.setIncludeTripStatus(_includeStatus);

    BeanFactoryV2 factory = getBeanFactoryV2();

    try {
      ListBean<TripDetailsBean> trips = _service.getTripsForBounds(query);
View Full Code Here

   
    TripForVehicleQueryBean query = new TripForVehicleQueryBean();
    query.setVehicleId(_id);
    query.setTime(_time);
   
    TripDetailsInclusionBean inclusion = query.getInclusion();
    inclusion.setIncludeTripBean(_includeTrip);
    inclusion.setIncludeTripSchedule(_includeSchedule);
    inclusion.setIncludeTripStatus(_includeStatus);

    TripDetailsBean trip = _service.getTripDetailsForVehicleAndTime(query);

    if (trip == null)
      return setResourceNotFoundResponse();
View Full Code Here

  public String agency() {
    TripsForAgencyQueryBean query = new TripsForAgencyQueryBean();
    query.setAgencyId(_agencyId);
    query.setMaxCount(Integer.MAX_VALUE);
    query.setTime(_time.getTime());
    query.setInclusion(new TripDetailsInclusionBean(true, false, true));

    ListBean<TripDetailsBean> result = _transitDataService.getTripsForAgency(query);

    _trips = result.getList();
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data.model.trips.TripDetailsInclusionBean

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.