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, isConstructed
public static ConfigServer start(java.lang.String agencyId)
agencyId
- public java.util.Collection<IpcRouteSummary> getRoutes() throws java.rmi.RemoteException
ConfigInterface
getRoutes
in interface ConfigInterface
java.rmi.RemoteException
public IpcRoute getRoute(java.lang.String routeIdOrShortName, java.lang.String directionId, java.lang.String stopId, java.lang.String tripPatternId) throws java.rmi.RemoteException
ConfigInterface
getRoute
in interface ConfigInterface
routeIdOrShortName
- 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.RemoteException
public IpcDirectionsForRoute getStops(java.lang.String routeIdOrShortName) throws java.rmi.RemoteException
ConfigInterface
getStops
in interface ConfigInterface
routeIdOrShortName
- 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.RemoteException
public IpcBlock getBlock(java.lang.String blockId, java.lang.String serviceId) throws java.rmi.RemoteException
ConfigInterface
getBlock
in interface ConfigInterface
java.rmi.RemoteException
public java.util.Collection<IpcBlock> getBlocks(java.lang.String blockId) throws java.rmi.RemoteException
ConfigInterface
getBlocks
in interface ConfigInterface
java.rmi.RemoteException
public IpcTrip getTrip(java.lang.String tripId) throws java.rmi.RemoteException
ConfigInterface
getTrip
in interface ConfigInterface
java.rmi.RemoteException
public java.util.List<IpcTripPattern> getTripPatterns(java.lang.String routeIdOrShortName) throws java.rmi.RemoteException
ConfigInterface
getTripPatterns
in interface ConfigInterface
java.rmi.RemoteException
public java.util.List<Agency> getAgencies() throws java.rmi.RemoteException
ConfigInterface
getAgencies
in interface ConfigInterface
java.rmi.RemoteException
public java.util.List<IpcSchedule> getSchedules(java.lang.String routeIdOrShortName) throws java.rmi.RemoteException
ConfigInterface
getSchedules
in interface ConfigInterface
java.rmi.RemoteException
public java.util.List<IpcCalendar> getCurrentCalendars()
ConfigInterface
getCurrentCalendars
in interface ConfigInterface
public java.util.List<IpcCalendar> getAllCalendars()
ConfigInterface
getAllCalendars
in interface ConfigInterface
public java.util.List<java.lang.String> getVehicleIds() throws java.rmi.RemoteException
ConfigInterface
getVehicleIds
in interface ConfigInterface
java.rmi.RemoteException
public java.util.List<java.lang.String> getServiceIds() throws java.rmi.RemoteException
ConfigInterface
getServiceIds
in interface ConfigInterface
java.rmi.RemoteException
public java.util.List<java.lang.String> getCurrentServiceIds() throws java.rmi.RemoteException
ConfigInterface
getCurrentServiceIds
in interface ConfigInterface
java.rmi.RemoteException
public java.util.List<java.lang.String> getTripIds() throws java.rmi.RemoteException
ConfigInterface
getTripIds
in interface ConfigInterface
java.rmi.RemoteException
public java.util.List<java.lang.String> getBlockIds() throws java.rmi.RemoteException
ConfigInterface
getBlockIds
in interface ConfigInterface
java.rmi.RemoteException
public java.util.List<java.lang.String> getBlockIds(java.lang.String serviceId) throws java.rmi.RemoteException
ConfigInterface
getBlockIds
in interface ConfigInterface
serviceId
- If null then all block IDs are returnedjava.rmi.RemoteException