public class ConfigServer extends AbstractServer implements ConfigInterface
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Agency> |
getAgencies()
Returns list of Agency objects containing data from GTFS agency.txt file
|
java.util.List<IpcCalendar> |
getAllCalendars()
Returns list of all Calendar objects.
|
IpcBlock |
getBlock(java.lang.String blockId,
java.lang.String serviceId)
Returns block info for specified blockId and serviceId.
|
java.util.List<java.lang.String> |
getBlockIds()
Returns list of block IDs, unsorted, duplicates removed
|
java.util.List<java.lang.String> |
getBlockIds(java.lang.String serviceId)
Returns list of block IDs for specified serviceId, unsorted
|
java.util.Collection<IpcBlock> |
getBlocks(java.lang.String blockId)
Returns blocks for each service class for the blockId specified.
|
java.util.List<IpcCalendar> |
getCurrentCalendars()
Returns list of Calendar objects that are currently active.
|
java.util.List<java.lang.String> |
getCurrentServiceIds()
Returns list of service IDs, unsorted
|
IpcRoute |
getRoute(java.lang.String routeIdOrShortName,
java.lang.String directionId,
java.lang.String stopId,
java.lang.String tripPatternId)
Obtains data for single route.
|
java.util.Collection<IpcRouteSummary> |
getRoutes()
Obtains ordered list of routes configured.
|
java.util.List<IpcSchedule> |
getSchedules(java.lang.String routeIdOrShortName)
Returns list of IpcSchedule objects for the specified routeIdOrShortName
|
java.util.List<java.lang.String> |
getServiceIds()
Returns list of service IDs, unsorted
|
IpcDirectionsForRoute |
getStops(java.lang.String routeIdOrShortName)
Returns stops for each direction for a route.
|
IpcTrip |
getTrip(java.lang.String tripId)
Returns trip info for specified tripId.
|
java.util.List<java.lang.String> |
getTripIds()
Returns list of trip IDs, unsorted
|
java.util.List<IpcTripPattern> |
getTripPatterns(java.lang.String routeIdOrShortName)
Returns trip patterns for specified routeIdOrShortName.
|
java.util.List<java.lang.String> |
getVehicleIds()
Returns list of vehicle IDs, unsorted
|
static ConfigServer |
start(java.lang.String agencyId)
Starts up the ConfigServer so that RMI calls can query for configuration
data.
|
getAgencyId, getBindName, isConstructedpublic static ConfigServer start(java.lang.String agencyId)
agencyId - public java.util.Collection<IpcRouteSummary> getRoutes() throws java.rmi.RemoteException
ConfigInterfacegetRoutes in interface ConfigInterfacejava.rmi.RemoteExceptionpublic IpcRoute getRoute(java.lang.String routeIdOrShortName, java.lang.String directionId, java.lang.String stopId, java.lang.String tripPatternId) throws java.rmi.RemoteException
ConfigInterfacegetRoute in interface ConfigInterfacerouteIdOrShortName - Specifies which route to provide data for. routeShortName is
often used instead of routeId since routeIds unfortunately
often change when there is a schedule change.directionId - optional. If want UI to highlight the remaining stops and
paths left in the trip then can specify directionId along with
the stopId. The directionId can be needed for agencies where
only a single stop is used for both directions for a route.stopId - optional. If want UI to highlight the remaining stops and
paths left in trip then stopId is used to return which stops
remain in trip. If this additional info not needed for UI then
null can be specified.tripPatternId - optional. If want UI to highlight the remaining stops and
paths left in trip then stopId is used to determine which trip
pattern to highlight. If this additional info not needed for
UI then null can be specified.java.rmi.RemoteExceptionpublic IpcDirectionsForRoute getStops(java.lang.String routeIdOrShortName) throws java.rmi.RemoteException
ConfigInterfacegetStops in interface ConfigInterfacerouteIdOrShortName - Specifies which route to provide data for. routeShortName is
often used instead of routeId since routeIds unfortunately
often change when there is a schedule change.java.rmi.RemoteExceptionpublic IpcBlock getBlock(java.lang.String blockId, java.lang.String serviceId) throws java.rmi.RemoteException
ConfigInterfacegetBlock in interface ConfigInterfacejava.rmi.RemoteExceptionpublic java.util.Collection<IpcBlock> getBlocks(java.lang.String blockId) throws java.rmi.RemoteException
ConfigInterfacegetBlocks in interface ConfigInterfacejava.rmi.RemoteExceptionpublic IpcTrip getTrip(java.lang.String tripId) throws java.rmi.RemoteException
ConfigInterfacegetTrip in interface ConfigInterfacejava.rmi.RemoteExceptionpublic java.util.List<IpcTripPattern> getTripPatterns(java.lang.String routeIdOrShortName) throws java.rmi.RemoteException
ConfigInterfacegetTripPatterns in interface ConfigInterfacejava.rmi.RemoteExceptionpublic java.util.List<Agency> getAgencies() throws java.rmi.RemoteException
ConfigInterfacegetAgencies in interface ConfigInterfacejava.rmi.RemoteExceptionpublic java.util.List<IpcSchedule> getSchedules(java.lang.String routeIdOrShortName) throws java.rmi.RemoteException
ConfigInterfacegetSchedules in interface ConfigInterfacejava.rmi.RemoteExceptionpublic java.util.List<IpcCalendar> getCurrentCalendars()
ConfigInterfacegetCurrentCalendars in interface ConfigInterfacepublic java.util.List<IpcCalendar> getAllCalendars()
ConfigInterfacegetAllCalendars in interface ConfigInterfacepublic java.util.List<java.lang.String> getVehicleIds()
throws java.rmi.RemoteException
ConfigInterfacegetVehicleIds in interface ConfigInterfacejava.rmi.RemoteExceptionpublic java.util.List<java.lang.String> getServiceIds()
throws java.rmi.RemoteException
ConfigInterfacegetServiceIds in interface ConfigInterfacejava.rmi.RemoteExceptionpublic java.util.List<java.lang.String> getCurrentServiceIds()
throws java.rmi.RemoteException
ConfigInterfacegetCurrentServiceIds in interface ConfigInterfacejava.rmi.RemoteExceptionpublic java.util.List<java.lang.String> getTripIds()
throws java.rmi.RemoteException
ConfigInterfacegetTripIds in interface ConfigInterfacejava.rmi.RemoteExceptionpublic java.util.List<java.lang.String> getBlockIds()
throws java.rmi.RemoteException
ConfigInterfacegetBlockIds in interface ConfigInterfacejava.rmi.RemoteExceptionpublic java.util.List<java.lang.String> getBlockIds(java.lang.String serviceId)
throws java.rmi.RemoteException
ConfigInterfacegetBlockIds in interface ConfigInterfaceserviceId - If null then all block IDs are returnedjava.rmi.RemoteException