Package org.onebusaway.transit_data.model

Examples of org.onebusaway.transit_data.model.StopRouteDirectionScheduleBean


        stopTimesForDirection.addEntry(bean, narrative.getTripHeadsign());
      }

      for (StopTimeByDirectionEntry stopTimesForDirection : stopTimesByDirection.values()) {

        StopRouteDirectionScheduleBean directionBean = new StopRouteDirectionScheduleBean();

        directionBean.getStopTimes().addAll(
            stopTimesForDirection.getStopTimes());

        directionBean.getFrequencies().addAll(
            stopTimesForDirection.getFrequencies());

        String headsign = stopTimesForDirection.getBestHeadsign();
        directionBean.setTripHeadsign(headsign);

        Collections.sort(directionBean.getStopTimes(), _stopTimeComparator);
        Collections.sort(directionBean.getFrequencies(), _frequencyComparator);

        List<StopTimeGroupBean> groups = new ArrayList<StopTimeGroupBean>();

        applyTripHeadsignStopTimeGroups(stopTimesForDirection, groups);
        applyContinuesAsStopTimeGroups(stopTimesForDirection, groups);

        directionBean.setGroups(groups);

        routeScheduleBean.getDirections().add(directionBean);
      }

      Collections.sort(routeScheduleBean.getDirections(), _directionComparator);
View Full Code Here

TOP

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

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.