Package org.onebusaway.transit_data_federation.services.blocks

Examples of org.onebusaway.transit_data_federation.services.blocks.FrequencyBlockStopTimeIndex$FrequencyBlockStopTimeList


    List<FrequencyBlockStopTimeIndex> indices = grep(allIndices, aid("a"),
        serviceIds(lsids("s1"), lsids()));
    assertEquals(1, indices.size());

    FrequencyBlockStopTimeIndex index = indices.get(0);

    assertEquals(freqA1, index.getFrequencies().get(0));
    assertEquals(freqB1, index.getFrequencies().get(1));
    assertEquals(freqA2, index.getFrequencies().get(2));
    assertEquals(freqB2, index.getFrequencies().get(3));

    assertEquals(bcA, index.getBlockConfigs().get(0));
    assertEquals(bcB, index.getBlockConfigs().get(1));
    assertEquals(bcA, index.getBlockConfigs().get(2));
    assertEquals(bcB, index.getBlockConfigs().get(3));
  }
View Full Code Here


      List<List<FrequencyBlockStopTimeEntry>> groupedStopTimes = BlockLibrary.createStrictlyOrderedGroups(
          frequencyStopTimes, _frequencyBlockStopTimeLooseComparator,
          _frequencyBlockStopTimeStrictComparator);

      for (List<FrequencyBlockStopTimeEntry> group : groupedStopTimes) {
        FrequencyBlockStopTimeIndex index = createFrequencyBlockStopTimeIndexForGroup(group);
        allIndices.add(index);
      }
    }

    return allIndices;
View Full Code Here

          frequency.getStartTime());
      interval = ServiceInterval.extend(interval, frequency.getEndTime(),
          frequency.getEndTime());
    }

    return new FrequencyBlockStopTimeIndex(frequencies, blockConfigs,
        stopIndices, interval);
  }
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data_federation.services.blocks.FrequencyBlockStopTimeIndex$FrequencyBlockStopTimeList

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.