Search in sources :

Example 1 with BlockIndexFactoryService

use of org.onebusaway.transit_data_federation.services.blocks.BlockIndexFactoryService in project onebusaway-application-modules by camsys.

the class UnitTestingSupport method blockTripIndices.

public static List<BlockTripIndex> blockTripIndices(BlockEntryImpl... blocks) {
    List<BlockEntry> list = new ArrayList<BlockEntry>();
    for (BlockEntryImpl block : blocks) list.add(block);
    BlockIndexFactoryService factory = new BlockIndexFactoryServiceImpl();
    return factory.createTripIndices(list);
}
Also used : BlockEntry(org.onebusaway.transit_data_federation.services.transit_graph.BlockEntry) ArrayList(java.util.ArrayList) BlockIndexFactoryService(org.onebusaway.transit_data_federation.services.blocks.BlockIndexFactoryService) BlockEntryImpl(org.onebusaway.transit_data_federation.impl.transit_graph.BlockEntryImpl) BlockIndexFactoryServiceImpl(org.onebusaway.transit_data_federation.impl.blocks.BlockIndexFactoryServiceImpl)

Aggregations

ArrayList (java.util.ArrayList)1 BlockIndexFactoryServiceImpl (org.onebusaway.transit_data_federation.impl.blocks.BlockIndexFactoryServiceImpl)1 BlockEntryImpl (org.onebusaway.transit_data_federation.impl.transit_graph.BlockEntryImpl)1 BlockIndexFactoryService (org.onebusaway.transit_data_federation.services.blocks.BlockIndexFactoryService)1 BlockEntry (org.onebusaway.transit_data_federation.services.transit_graph.BlockEntry)1