Package org.onebusaway.transit_data_federation.impl.transit_graph

Examples of org.onebusaway.transit_data_federation.impl.transit_graph.FrequencyEntryImpl


      Map<AgencyAndId, List<FrequencyEntry>> frequenciesByTripId,
      Map<FrequencyRouteLabelKey, List<FrequencyEntry>> frequencyLabelsByKey) {
    AgencyAndId tripId = frequency.getTrip().getId();
    TripEntry trip = graph.getTripEntryForId(tripId);

    FrequencyEntryImpl entry = new FrequencyEntryImpl(frequency.getStartTime(),
        frequency.getEndTime(), frequency.getHeadwaySecs());

    FrequencyRouteLabelKey key = getFrequencyLabelKeyForTrip(frequency, trip);

    if (key != null) {
View Full Code Here


    return trip;
  }

  public static FrequencyEntry frequency(int startTime, int endTime,
      int headwaySecs) {
    return new FrequencyEntryImpl(startTime, endTime, headwaySecs);
  }
View Full Code Here

    TripEntryImpl tripF = trip("freq", "sA");

    stopTime(0, fromStop, tripF, time(10, 00), time(10, 00), 0.0);
    stopTime(4, toStop, tripF, time(10, 05), time(10, 05), 0.0);

    FrequencyEntry frequency = new FrequencyEntryImpl(time(10, 30),
        time(11, 30), 10 * 60);
    List<FrequencyEntry> frequencies = Arrays.asList(frequency);

    BlockConfigurationEntry bcFreq = linkBlockTrips(block("bFreq"),
        frequencies, tripF);
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data_federation.impl.transit_graph.FrequencyEntryImpl

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.