Module org.entur.netex.gtfs.export
Interface GtfsServiceRepository
- All Known Implementing Classes:
DefaultGtfsServiceRepository
public interface GtfsServiceRepository
Repository giving access to the list of GTFS service in the GTFS object model being built.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the list of services.getServiceForDayTypes(Set<org.rutebanken.netex.model.DayType> dayTypes) Create or retrieve the GTFS service corresponding to a set of DayTypes.getServiceForOperatingDays(Set<org.rutebanken.netex.model.OperatingDay> operatingDays) Create or retrieve the GTFS service corresponding to a set of OperatingDays.
-
Method Details
-
getAllServices
Collection<GtfsService> getAllServices()Return the list of services.- Returns:
- the list of services.
-
getServiceForDayTypes
Create or retrieve the GTFS service corresponding to a set of DayTypes. Multiple calls to this method with the same set of day types return the same object. GTFS services based on day types are used for producing trips from ServiceJourneys (not DatedServiceJourneys).- Parameters:
dayTypes- the set of NeTEx DayTypes.- Returns:
- the GTFS service for this set of DayTypes.
-
getServiceForOperatingDays
Create or retrieve the GTFS service corresponding to a set of OperatingDays. Multiple calls to this method with the same set of operating days return the same object. GTFS services based on operating days are used for producing trips from DatedServiceJourneys.- Parameters:
operatingDays- the set of NeTEx OperatingDays.- Returns:
- the GTFS service for this set of OperatingDays.
-