Examples of StopTimeInstanceBean


Examples of org.onebusaway.transit_data.model.StopTimeInstanceBean

        ArrivalAndDepartureInstance instance = _arrivalAndDepartureService.getArrivalAndDepartureForStop(query);

        if (instance != null) {
          StopTimeInstance sti = instance.getStopTimeInstance();
          StopTimeInstanceBean stopTimeBean = _stopTimeBeanService.getStopTimeInstanceAsBean(sti);
          bean.setStopTime(stopTimeBean);
        }
      }
    }
View Full Code Here

Examples of org.onebusaway.transit_data.model.StopTimeInstanceBean

        AgencyAndId tripId = trip.getId();
        AgencyAndId serviceId = trip.getServiceId().getId();

        TripNarrative narrative = _narrativeService.getTripForId(tripId);

        StopTimeInstanceBean stiBean = new StopTimeInstanceBean();
        stiBean.setTripId(AgencyAndIdLibrary.convertToString(tripId));
        stiBean.setServiceDate(sti.getServiceDate());
        stiBean.setArrivalTime(sti.getArrivalTime());
        stiBean.setDepartureTime(sti.getDepartureTime());
        stiBean.setServiceId(AgencyAndIdLibrary.convertToString(serviceId));

        stiBean.setArrivalEnabled(bst.getBlockSequence() > 0);
        stiBean.setDepartureEnabled(bst.getBlockSequence() + 1 < blockConfig.getStopTimes().size());

        String directionId = trip.getDirectionId();
        if (directionId == null)
          directionId = "0";
View Full Code Here

Examples of org.onebusaway.transit_data.model.StopTimeInstanceBean

    return bean;
  }
 
  @Override
  public StopTimeInstanceBean getStopTimeInstanceAsBean(StopTimeInstance instance) {
    StopTimeInstanceBean bean = new StopTimeInstanceBean();
    bean.setArrivalTime(instance.getArrivalTime());
    bean.setDepartureTime(instance.getDepartureTime());
    bean.setServiceDate(instance.getServiceDate());
    bean.setTripId(AgencyAndIdLibrary.convertToString(instance.getTrip().getTrip().getId()));
    return bean;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.