org.onebusaway.transit_data_federation.impl
Class StopSequenceCollectionServiceImpl

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.StopSequenceCollectionServiceImpl
All Implemented Interfaces:
StopSequenceCollectionService

@Component
public class StopSequenceCollectionServiceImpl
extends Object
implements StopSequenceCollectionService

Construct a set of StopSequenceCollection collection for each route. A collection contains a set of StopSequence sequences that are headed in the same direction for a particular route, along with a general description of the destinations for those stop sequences and general start and stop locations for the sequences.

Author:
bdferris

Constructor Summary
StopSequenceCollectionServiceImpl()
           
 
Method Summary
 List<StopSequenceCollection> getStopSequencesAsCollections(List<StopSequence> sequences)
          Group a set of stop sequence objects into a smaller set of stop sequence collections, typically grouping the stop sequences by direction of travel for the parent route.
 void setNarrativeService(NarrativeService narrativeService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopSequenceCollectionServiceImpl

public StopSequenceCollectionServiceImpl()
Method Detail

setNarrativeService

public void setNarrativeService(NarrativeService narrativeService)

getStopSequencesAsCollections

public List<StopSequenceCollection> getStopSequencesAsCollections(List<StopSequence> sequences)
Description copied from interface: StopSequenceCollectionService
Group a set of stop sequence objects into a smaller set of stop sequence collections, typically grouping the stop sequences by direction of travel for the parent route.

Specified by:
getStopSequencesAsCollections in interface StopSequenceCollectionService
Parameters:
sequences - the set of stop sequences
Returns:
the collection of stop sequence collection groups


Copyright © 2012 OneBusAway. All Rights Reserved.