Class RidershipServiceImpl
- java.lang.Object
-
- org.onebusaway.transit_data_federation.impl.RidershipServiceImpl
-
- All Implemented Interfaces:
RidershipService
@Component public class RidershipServiceImpl extends Object implements RidershipService
Manage HistoricalRidership Bundle Operations.
-
-
Constructor Summary
Constructors Constructor Description RidershipServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<OccupancyStatusBean>
convertToOccupancyStatusBeans(List<HistoricalRidership> hrs)
List<HistoricalRidership>
getAllHistoricalRiderships(long serviceDate)
List<HistoricalRidership>
getHistoricalRiderships(org.onebusaway.gtfs.model.AgencyAndId routeId, org.onebusaway.gtfs.model.AgencyAndId tripId, org.onebusaway.gtfs.model.AgencyAndId stopId, long serviceDate)
List<HistoricalRidership>
getHistoricalRidershipsForRoute(org.onebusaway.gtfs.model.AgencyAndId routeId, long serviceDate)
List<HistoricalRidership>
getHistoricalRidershipsForStop(org.onebusaway.gtfs.model.AgencyAndId stopId, long serviceDate)
List<HistoricalRidership>
getHistoricalRidershipsForTrip(org.onebusaway.gtfs.model.AgencyAndId tripId, long serviceDate)
void
setBundle(FederatedTransitDataBundle bundle)
void
setup()
-
-
-
Method Detail
-
setBundle
@Autowired public void setBundle(FederatedTransitDataBundle bundle)
-
setup
@PostConstruct @Refreshable(dependsOn="transitGraph") public void setup() throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
getAllHistoricalRiderships
public List<HistoricalRidership> getAllHistoricalRiderships(long serviceDate)
- Specified by:
getAllHistoricalRiderships
in interfaceRidershipService
-
getHistoricalRidershipsForTrip
public List<HistoricalRidership> getHistoricalRidershipsForTrip(org.onebusaway.gtfs.model.AgencyAndId tripId, long serviceDate)
- Specified by:
getHistoricalRidershipsForTrip
in interfaceRidershipService
-
getHistoricalRidershipsForStop
public List<HistoricalRidership> getHistoricalRidershipsForStop(org.onebusaway.gtfs.model.AgencyAndId stopId, long serviceDate)
- Specified by:
getHistoricalRidershipsForStop
in interfaceRidershipService
-
getHistoricalRidershipsForRoute
public List<HistoricalRidership> getHistoricalRidershipsForRoute(org.onebusaway.gtfs.model.AgencyAndId routeId, long serviceDate)
- Specified by:
getHistoricalRidershipsForRoute
in interfaceRidershipService
-
getHistoricalRiderships
public List<HistoricalRidership> getHistoricalRiderships(org.onebusaway.gtfs.model.AgencyAndId routeId, org.onebusaway.gtfs.model.AgencyAndId tripId, org.onebusaway.gtfs.model.AgencyAndId stopId, long serviceDate)
- Specified by:
getHistoricalRiderships
in interfaceRidershipService
-
convertToOccupancyStatusBeans
public List<OccupancyStatusBean> convertToOccupancyStatusBeans(List<HistoricalRidership> hrs)
- Specified by:
convertToOccupancyStatusBeans
in interfaceRidershipService
-
-