public class RestTrafficTransferAnalystProvider extends RestProviderBase implements ProviderContextAware, TrafficTransferAnalystProvider
REST traffic transfer analysis service provider.
RestProviderBase.CacheModel, RestProviderBase.RestRequestException
JAVA_POSTFIX, javaConverter, JSON_POSTFIX, jsonConverter, jsonDecoder, lock, logger, message
Constructor and Description |
---|
RestTrafficTransferAnalystProvider()
The Constructor.
|
RestTrafficTransferAnalystProvider(RestTrafficTransferAnalystProviderSetting setting)
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Release the resource object.
|
TransferStopInfo[] |
findStopsByKeyWord(java.lang.String keyWord, boolean returnPosition)
Finds the matching bus station in the current traffic network based on the site name.
|
TransferGuide |
findTransferPath(long startStopID, long endStopID, TransferLine[] transferLines)
According to the specified starting and ending stop and transfer information to obtain detailed route information.
|
TransferGuide |
findTransferPath(Point2D startPosition, Point2D endPosition, TransferLine[] transferLines)
According to the specified starting and ending coordinates and transfer information to obtain detailed route information.
|
TransferSolutions |
findTransferSolutions(long startStopID, long endStopID, TrafficTransferAnalystParameter trafficTransferAnalystParameter)
According to the specified starting and ending stop ID and traffic transfer analysis parameters to carry out traffic transfer analysis.
|
TransferSolutions |
findTransferSolutions(Point2D startPosition, Point2D endPosition, TrafficTransferAnalystParameter trafficTransferAnalystParameter)
According to the specified starting and ending coordinates and traffic transfer analysis parameters to carry out traffic transfer analysis.
|
java.lang.String |
getName()
Gets traffic network name, such as "Beijing bus"
|
protected RestProviderSetting |
getRestProviderSetting()
Return the rest service provider configuration information.
|
void |
setProviderContext(ProviderContext context)
Sets the service provider context
|
clearCache, executeRequest, executeRequest, executeRequest, executeRequestForByteArray, executeRequestForByteArray, executeRequestForByteArray, executeRequestForByteArray, executeRequestForList, executeRequestForList, executeRequestForList, executeRequestForList, executeRequestForStream, executeRequestForStream, executeRequestForStream, executeRequestForText, executeRequestForText, executeRequestForText, handleExeption, init, newAndSetClient, rectifyRestServiceRootURL
public RestTrafficTransferAnalystProvider()
The Constructor.
public RestTrafficTransferAnalystProvider(RestTrafficTransferAnalystProviderSetting setting)
The Constructor.
setting
- Rest traffic transfer analysis service provider parameter object.public void dispose()
Disposable
Release the resource object.
dispose
in interface Disposable
dispose
in class RestProviderBase
protected RestProviderSetting getRestProviderSetting()
RestProviderBase
getRestProviderSetting
in class RestProviderBase
public void setProviderContext(ProviderContext context)
ProviderContextAware
Sets the service provider context
setProviderContext
in interface ProviderContextAware
context
- service provider contextpublic TransferSolutions findTransferSolutions(Point2D startPosition, Point2D endPosition, TrafficTransferAnalystParameter trafficTransferAnalystParameter)
TrafficTransferAnalystProvider
According to the specified starting and ending coordinates and traffic transfer analysis parameters to carry out traffic transfer analysis.
findTransferSolutions
in interface TrafficTransferAnalystProvider
startPosition
- Starting point coordinates.endPosition
- Ending point coordinates.trafficTransferAnalystParameter
- Traffic transfer analysis parameters.public TransferSolutions findTransferSolutions(long startStopID, long endStopID, TrafficTransferAnalystParameter trafficTransferAnalystParameter)
TrafficTransferAnalystProvider
According to the specified starting and ending stop ID and traffic transfer analysis parameters to carry out traffic transfer analysis.
findTransferSolutions
in interface TrafficTransferAnalystProvider
startStopID
- Starting stop ID.endStopID
- Ending stop ID.trafficTransferAnalystParameter
- Traffic transfer analysis parameters.public TransferGuide findTransferPath(Point2D startPosition, Point2D endPosition, TransferLine[] transferLines)
TrafficTransferAnalystProvider
According to the specified starting and ending coordinates and transfer information to obtain detailed route information.
findTransferPath
in interface TrafficTransferAnalystProvider
startPosition
- Starting point coordinates.endPosition
- Ending point coordinates.transferLines
- Transfer information.public TransferGuide findTransferPath(long startStopID, long endStopID, TransferLine[] transferLines)
TrafficTransferAnalystProvider
According to the specified starting and ending stop and transfer information to obtain detailed route information.
findTransferPath
in interface TrafficTransferAnalystProvider
startStopID
- Starting stop ID.endStopID
- Ending stop ID.transferLines
- Transfer information.public java.lang.String getName()
TrafficTransferAnalystProvider
Gets traffic network name, such as "Beijing bus"
getName
in interface TrafficTransferAnalystProvider
public TransferStopInfo[] findStopsByKeyWord(java.lang.String keyWord, boolean returnPosition)
TrafficTransferAnalystProvider
Finds the matching bus station in the current traffic network based on the site name.
findStopsByKeyWord
in interface TrafficTransferAnalystProvider
keyWord
- Stop name keyword.returnPosition
- Whether to return the site coordinate information.