org.onebusaway.transit_data_federation.impl.narrative
Class NarrativeServiceImpl

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.narrative.NarrativeServiceImpl
All Implemented Interfaces:
NarrativeService

@Component
public class NarrativeServiceImpl
extends Object
implements NarrativeService


Constructor Summary
NarrativeServiceImpl()
           
 
Method Summary
 AgencyNarrative getAgencyForId(String agencyId)
          NarrativeService Interface
 RouteCollectionNarrative 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NarrativeServiceImpl

public NarrativeServiceImpl()
Method Detail

setBundle

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 interface NarrativeService

getStopForId

public StopNarrative getStopForId(org.onebusaway.gtfs.model.AgencyAndId stopId)
Specified by:
getStopForId in interface NarrativeService

getStopTimeForEntry

public StopTimeNarrative getStopTimeForEntry(StopTimeEntry entry)
Specified by:
getStopTimeForEntry in interface NarrativeService

getRouteCollectionForId

public RouteCollectionNarrative getRouteCollectionForId(org.onebusaway.gtfs.model.AgencyAndId routeCollectionId)
Specified by:
getRouteCollectionForId in interface NarrativeService

getTripForId

public TripNarrative getTripForId(org.onebusaway.gtfs.model.AgencyAndId tripId)
Specified by:
getTripForId in interface NarrativeService

getShapePointsForId

public ShapePoints getShapePointsForId(org.onebusaway.gtfs.model.AgencyAndId id)
Specified by:
getShapePointsForId in interface NarrativeService


Copyright © 2012 OneBusAway. All Rights Reserved.