Class StopSequenceCollectionServiceImpl
- java.lang.Object
-
- org.onebusaway.transit_data_federation.impl.StopSequenceCollectionServiceImpl
-
- All Implemented Interfaces:
StopSequenceCollectionService
@Component public class StopSequenceCollectionServiceImpl extends Object implements StopSequenceCollectionService
Construct a set ofStopSequenceCollection
collection for each route. A collection contains a set ofStopSequence
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
Constructors Constructor Description StopSequenceCollectionServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Method Detail
-
setNarrativeService
@Autowired 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 interfaceStopSequenceCollectionService
- Parameters:
sequences
- the set of stop sequences- Returns:
- the collection of stop sequence collection groups
-
-