org.onebusaway.api.actions.siri
Class SiriUtils

java.lang.Object
  extended by org.onebusaway.api.actions.siri.SiriUtils

public class SiriUtils
extends Object


Constructor Summary
SiriUtils()
           
 
Method Summary
static String getIdWithoutAgency(String id)
           
static org.onebusaway.siri.model.MonitoredVehicleJourney getMonitoredVehicleJourney(TripDetailsBean trip, Date serviceDate, String vehicleId)
           
static List<org.onebusaway.siri.model.OnwardCall> getOnwardCalls(List<TripStopTimeBean> stopTimes, long serviceDate, double distance, StopBean currentStop)
           
static String getProgressRateForStatus(String status)
           
static int getVisitNumber(HashMap<String,Integer> visitNumberForStop, StopBean stop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiriUtils

public SiriUtils()
Method Detail

getIdWithoutAgency

public static String getIdWithoutAgency(String id)

getOnwardCalls

public static List<org.onebusaway.siri.model.OnwardCall> getOnwardCalls(List<TripStopTimeBean> stopTimes,
                                                                        long serviceDate,
                                                                        double distance,
                                                                        StopBean currentStop)
Parameters:
stopTimes - The list of all stops this trip makes
serviceDate -
distance - How far in meters the bus is along the trip
currentStop - The stop the bus is presently at
Returns:
A list of Siri OnwardCall objects

getVisitNumber

public static int getVisitNumber(HashMap<String,Integer> visitNumberForStop,
                                 StopBean stop)

getMonitoredVehicleJourney

public static org.onebusaway.siri.model.MonitoredVehicleJourney getMonitoredVehicleJourney(TripDetailsBean trip,
                                                                                           Date serviceDate,
                                                                                           String vehicleId)

getProgressRateForStatus

public static String getProgressRateForStatus(String status)


Copyright © 2011 OneBusAway. All Rights Reserved.