Package org.onebusaway.transit_data.model

Examples of org.onebusaway.transit_data.model.StopTimeGroupBean


    List<TripHeadsignStopTimeGroupKey> sortedKeys = keyCounts.getSortedKeys();

    for (int i = 0; i < sortedKeys.size() - 1; i++) {

      TripHeadsignStopTimeGroupKey key = sortedKeys.get(i);
      StopTimeGroupBean group = new StopTimeGroupBean();

      String groupId = Integer.toString(groups.size());
      group.setId(groupId);

      String tripHeadsign = key.getTripHeadsign();
      group.setTripHeadsign(tripHeadsign);

      applyGroupIdForGroupKey(stopTimesForDirection, key, groupId);

      groups.add(group);
    }
View Full Code Here


    for (ContinuesAsStopTimeGroupKey key : sortedKeys) {

      AgencyAndId lineId = key.getLineId();
      if (lineId == null)
        continue;
      StopTimeGroupBean group = new StopTimeGroupBean();

      String groupId = Integer.toString(groups.size());
      group.setId(groupId);

      RouteBean route = _routeBeanService.getRouteForId(lineId);
      group.setContinuesAs(route);

      applyGroupIdForGroupKey(stopTimesForDirection, key, groupId);

      groups.add(group);
    }
View Full Code Here

TOP

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

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.