org.onebusaway.transit_data_federation.impl.beans.itineraries
Class ItinerariesBeanServiceImpl

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.beans.itineraries.ItinerariesBeanServiceImpl
All Implemented Interfaces:
ItinerariesBeanService

@Component
public class ItinerariesBeanServiceImpl
extends Object
implements ItinerariesBeanService


Constructor Summary
ItinerariesBeanServiceImpl()
           
 
Method Summary
 ItinerariesBean getItinerariesBetween(TransitLocationBean from, TransitLocationBean to, long targetTime, ConstraintsBean constraints)
          ItinerariesBeanService Interface
 List<TimedPlaceBean> getLocalPaths(ConstraintsBean constraints, MinTravelTimeToStopsBean travelTimes, List<LocalSearchResult> localResults)
          Given a set of stops with min-travel time already determined, and a set of nearby places, complete the best plan calculation for each by looking for valid walking paths from stops to places and keeping the shortest paths.
 MinTravelTimeToStopsBean getMinTravelTimeToStopsFrom(CoordinatePoint location, long time, TransitShedConstraintsBean constraints)
           
 ListBean<VertexBean> getStreetGraphForRegion(double latFrom, double lonFrom, double latTo, double lonTo)
           
 void setArrivalAndDepartureService(ArrivalAndDepartureService arrivalAndDepartureService)
           
 void setBlockCalendarService(BlockCalendarService blockCalendarService)
           
 void setEnabled(boolean enabled)
           
 void setGraphService(org.opentripplanner.routing.services.GraphService graphService)
           
 void setItinerariesService(ItinerariesService itinerariesService)
           
 void setNarrativeService(NarrativeService narrativeService)
           
 void setOtpConfigurationService(OTPConfigurationService otpConfigurationService)
           
 void setShapePointService(ShapePointService shapePointService)
           
 void setStopBeanService(StopBeanService stopBeanService)
           
 void setStreetVertexIndexService(org.opentripplanner.routing.services.StreetVertexIndexService streetVertexIndexService)
           
 void setTransitGraphDao(TransitGraphDao transitGraphDao)
           
 void setTransitShedPathService(TransitShedPathService transitShedPathService)
           
 void setTripBeanService(TripBeanService tripBeanService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItinerariesBeanServiceImpl

public ItinerariesBeanServiceImpl()
Method Detail

setItinerariesService

public void setItinerariesService(ItinerariesService itinerariesService)

setTransitShedPathService

public void setTransitShedPathService(TransitShedPathService transitShedPathService)

setStreetVertexIndexService

public void setStreetVertexIndexService(org.opentripplanner.routing.services.StreetVertexIndexService streetVertexIndexService)

setGraphService

public void setGraphService(org.opentripplanner.routing.services.GraphService graphService)

setOtpConfigurationService

public void setOtpConfigurationService(OTPConfigurationService otpConfigurationService)

setTripBeanService

public void setTripBeanService(TripBeanService tripBeanService)

setStopBeanService

public void setStopBeanService(StopBeanService stopBeanService)

setNarrativeService

public void setNarrativeService(NarrativeService narrativeService)

setShapePointService

public void setShapePointService(ShapePointService shapePointService)

setTransitGraphDao

public void setTransitGraphDao(TransitGraphDao transitGraphDao)

setArrivalAndDepartureService

public void setArrivalAndDepartureService(ArrivalAndDepartureService arrivalAndDepartureService)

setBlockCalendarService

public void setBlockCalendarService(BlockCalendarService blockCalendarService)

setEnabled

public void setEnabled(boolean enabled)

getItinerariesBetween

public ItinerariesBean getItinerariesBetween(TransitLocationBean from,
                                             TransitLocationBean to,
                                             long targetTime,
                                             ConstraintsBean constraints)
                                      throws ServiceException
ItinerariesBeanService Interface

Specified by:
getItinerariesBetween in interface ItinerariesBeanService
targetTime - TODO
Returns:
a list of trip plans computed between the two locations with the specified constraints
Throws:
ServiceException

getStreetGraphForRegion

public ListBean<VertexBean> getStreetGraphForRegion(double latFrom,
                                                    double lonFrom,
                                                    double latTo,
                                                    double lonTo)
Specified by:
getStreetGraphForRegion in interface ItinerariesBeanService

getMinTravelTimeToStopsFrom

public MinTravelTimeToStopsBean getMinTravelTimeToStopsFrom(CoordinatePoint location,
                                                            long time,
                                                            TransitShedConstraintsBean constraints)
Specified by:
getMinTravelTimeToStopsFrom in interface ItinerariesBeanService

getLocalPaths

public List<TimedPlaceBean> getLocalPaths(ConstraintsBean constraints,
                                          MinTravelTimeToStopsBean travelTimes,
                                          List<LocalSearchResult> localResults)
                                   throws ServiceException
Description copied from interface: ItinerariesBeanService
Given a set of stops with min-travel time already determined, and a set of nearby places, complete the best plan calculation for each by looking for valid walking paths from stops to places and keeping the shortest paths.

Specified by:
getLocalPaths in interface ItinerariesBeanService
Returns:
Throws:
ServiceException


Copyright © 2011 OneBusAway. All Rights Reserved.