org.onebusaway.transit_data_federation.impl.blocks
Class BlockIndexFactoryServiceImpl

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.blocks.BlockIndexFactoryServiceImpl
All Implemented Interfaces:
BlockIndexFactoryService

@Component
public class BlockIndexFactoryServiceImpl
extends Object
implements BlockIndexFactoryService


Constructor Summary
BlockIndexFactoryServiceImpl()
           
BlockIndexFactoryServiceImpl(boolean verbose)
           
 
Method Summary
 FrequencyBlockTripIndex createFrequencyIndexForTrips(List<BlockTripEntry> trips, List<FrequencyEntry> frequencies)
           
 List<FrequencyBlockTripIndexData> createFrequencyTripData(Iterable<BlockEntry> blocks)
           
 List<FrequencyBlockTripIndex> createFrequencyTripIndices(Iterable<BlockEntry> blocks)
           
 List<BlockLayoverIndexData> createLayoverData(Iterable<BlockEntry> blocks)
           
 BlockLayoverIndex createLayoverIndexForGroupOfBlockTrips(List<BlockTripEntry> trips)
           
 List<BlockLayoverIndex> createLayoverIndices(Iterable<BlockEntry> blocks)
           
 BlockSequenceIndex createSequenceIndexForGroupOfBlockSequences(List<BlockSequence> sequences)
           
 List<BlockSequenceIndex> createSequenceIndices(Iterable<BlockEntry> blocks)
           
 List<BlockTripIndexData> createTripData(Iterable<BlockEntry> blocks)
           
 BlockTripIndex createTripIndexForGroupOfBlockTrips(List<BlockTripEntry> blocks)
           
 List<BlockTripIndex> createTripIndices(Iterable<BlockEntry> blocks)
           
 void setAgencyBeanService(AgencyBeanService agencyBeanService)
           
 void setAgencyService(AgencyService agencyService)
           
 void setMaxScheduledTimeBetweenConsecutiveTrips(int maxScheduledTimeBetweenConsecutiveTrips)
           
 void setMaxSlackBetweenConsecutiveTrips(int maxSlackBetweenConsecutiveTrips)
           
 void setup()
           
 void setVerbose(boolean verbose)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockIndexFactoryServiceImpl

public BlockIndexFactoryServiceImpl()

BlockIndexFactoryServiceImpl

public BlockIndexFactoryServiceImpl(boolean verbose)
Method Detail

setAgencyService

public void setAgencyService(AgencyService agencyService)

setAgencyBeanService

public void setAgencyBeanService(AgencyBeanService agencyBeanService)

setVerbose

public void setVerbose(boolean verbose)

setMaxSlackBetweenConsecutiveTrips

public void setMaxSlackBetweenConsecutiveTrips(int maxSlackBetweenConsecutiveTrips)
Parameters:
maxSlackBetweenConsecutiveTrips - time, in seconds

setMaxScheduledTimeBetweenConsecutiveTrips

public void setMaxScheduledTimeBetweenConsecutiveTrips(int maxScheduledTimeBetweenConsecutiveTrips)

setup

@PostConstruct
public void setup()

createTripData

public List<BlockTripIndexData> createTripData(Iterable<BlockEntry> blocks)
Specified by:
createTripData in interface BlockIndexFactoryService

createLayoverData

public List<BlockLayoverIndexData> createLayoverData(Iterable<BlockEntry> blocks)
Specified by:
createLayoverData in interface BlockIndexFactoryService

createFrequencyTripData

public List<FrequencyBlockTripIndexData> createFrequencyTripData(Iterable<BlockEntry> blocks)
Specified by:
createFrequencyTripData in interface BlockIndexFactoryService

createTripIndices

public List<BlockTripIndex> createTripIndices(Iterable<BlockEntry> blocks)
Specified by:
createTripIndices in interface BlockIndexFactoryService

createLayoverIndices

public List<BlockLayoverIndex> createLayoverIndices(Iterable<BlockEntry> blocks)
Specified by:
createLayoverIndices in interface BlockIndexFactoryService

createFrequencyTripIndices

public List<FrequencyBlockTripIndex> createFrequencyTripIndices(Iterable<BlockEntry> blocks)
Specified by:
createFrequencyTripIndices in interface BlockIndexFactoryService

createSequenceIndices

public List<BlockSequenceIndex> createSequenceIndices(Iterable<BlockEntry> blocks)
Specified by:
createSequenceIndices in interface BlockIndexFactoryService

createTripIndexForGroupOfBlockTrips

public BlockTripIndex createTripIndexForGroupOfBlockTrips(List<BlockTripEntry> blocks)
Specified by:
createTripIndexForGroupOfBlockTrips in interface BlockIndexFactoryService

createLayoverIndexForGroupOfBlockTrips

public BlockLayoverIndex createLayoverIndexForGroupOfBlockTrips(List<BlockTripEntry> trips)
Specified by:
createLayoverIndexForGroupOfBlockTrips in interface BlockIndexFactoryService

createFrequencyIndexForTrips

public FrequencyBlockTripIndex createFrequencyIndexForTrips(List<BlockTripEntry> trips,
                                                            List<FrequencyEntry> frequencies)
Specified by:
createFrequencyIndexForTrips in interface BlockIndexFactoryService

createSequenceIndexForGroupOfBlockSequences

public BlockSequenceIndex createSequenceIndexForGroupOfBlockSequences(List<BlockSequence> sequences)
Specified by:
createSequenceIndexForGroupOfBlockSequences in interface BlockIndexFactoryService


Copyright © 2011 OneBusAway. All Rights Reserved.