Class NarrativeServiceImpl
- java.lang.Object
-
- org.onebusaway.transit_data_federation.impl.narrative.NarrativeServiceImpl
-
- All Implemented Interfaces:
NarrativeService
@Component public class NarrativeServiceImpl extends Object implements NarrativeService
-
-
Constructor Summary
Constructors Constructor Description NarrativeServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgencyNarrative
getAgencyForId(String agencyId)
NarrativeService
InterfaceRouteCollectionNarrative
getRouteCollectionForId(org.onebusaway.gtfs.model.AgencyAndId routeCollectionId)
ShapePoints
getShapePointsForId(org.onebusaway.gtfs.model.AgencyAndId id)
StopNarrative
getStopForId(org.onebusaway.gtfs.model.AgencyAndId stopId)
StopTimeNarrative
getStopTimeForEntry(StopTimeEntry entry)
TripNarrative
getTripForId(org.onebusaway.gtfs.model.AgencyAndId tripId)
void
setBundle(FederatedTransitDataBundle bundle)
void
setStopTimeNarrativeProvider(NarrativeProviderImpl provider)
void
setup()
-
-
-
Method Detail
-
setBundle
@Autowired public void setBundle(FederatedTransitDataBundle bundle)
-
setStopTimeNarrativeProvider
public void setStopTimeNarrativeProvider(NarrativeProviderImpl provider)
-
setup
@PostConstruct @Refreshable(dependsOn="narrativeData") public void setup() throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
getAgencyForId
public AgencyNarrative getAgencyForId(String agencyId)
NarrativeService
Interface- Specified by:
getAgencyForId
in interfaceNarrativeService
-
getStopForId
public StopNarrative getStopForId(org.onebusaway.gtfs.model.AgencyAndId stopId)
- Specified by:
getStopForId
in interfaceNarrativeService
-
getStopTimeForEntry
public StopTimeNarrative getStopTimeForEntry(StopTimeEntry entry)
- Specified by:
getStopTimeForEntry
in interfaceNarrativeService
-
getRouteCollectionForId
public RouteCollectionNarrative getRouteCollectionForId(org.onebusaway.gtfs.model.AgencyAndId routeCollectionId)
- Specified by:
getRouteCollectionForId
in interfaceNarrativeService
-
getTripForId
public TripNarrative getTripForId(org.onebusaway.gtfs.model.AgencyAndId tripId)
- Specified by:
getTripForId
in interfaceNarrativeService
-
getShapePointsForId
public ShapePoints getShapePointsForId(org.onebusaway.gtfs.model.AgencyAndId id)
- Specified by:
getShapePointsForId
in interfaceNarrativeService
-
-