public class TrafficTransferAnalystImpl extends java.lang.Object implements TrafficTransferAnalyst, ComponentContextAware, Disposable
The implementation class of Traffic Transfer Analysis Service Component Interface.
The traffic transfer analysis service component is a kind of GIS service component, which encapsulates the GIS function related to the traffic transfer analysis.
The service provider type used by the traffic transfer analysis service component must be a traffic transfer analysis service provider (TrafficTransferAnalystProvider
).
Constructor and Description |
---|
TrafficTransferAnalystImpl() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Release the resource object.
|
TransferStopInfo[] |
findStopsByKeyWord(java.lang.String name, java.lang.String keyWord, boolean returnPosition)
Find the matching sites in the current traffic network based on the site name.
|
TransferGuide |
findTransferPath(java.lang.String name, long startStopID, long endStopID, TransferLine[] transferLines)
According to the specified starting and ending stop and transfer information to obtain detailed route information.
|
TransferGuide |
findTransferPath(java.lang.String name, Point2D startPosition, Point2D endPosition, TransferLine[] transferLines)
According to the specified starting and ending coordinates and transfer information to obtain detailed route information.
|
TransferSolutions |
findTransferSolutions(java.lang.String name, 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(java.lang.String name, 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.util.List<java.lang.String> |
getNames()
Gets a list of traffic network names.
|
void |
setComponentContext(ComponentContext context)
Sets the traffic transfer analysis service component context.
|
public void setComponentContext(ComponentContext context)
Sets the traffic transfer analysis service component context.
The traffic transfer analysis service component can be directly initialized by setting the traffic transfer analysis service component context.
setComponentContext
in interface ComponentContextAware
context
-public java.util.List<java.lang.String> getNames()
Gets a list of traffic network names.
getNames
in interface TrafficTransferAnalyst
public TransferSolutions findTransferSolutions(java.lang.String name, 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.
Traffic network name.findTransferSolutions
in interface TrafficTransferAnalyst
startPosition
- Starting point coordinates.endPosition
- Ending point coordinates.trafficTransferAnalystParameter
- Traffic transfer analysis parameters.public TransferSolutions findTransferSolutions(java.lang.String name, 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.
Traffic network name.findTransferSolutions
in interface TrafficTransferAnalyst
startStopID
- Starting stop ID.endStopID
- Ending stop ID.trafficTransferAnalystParameter
- Traffic transfer analysis parameters.public TransferGuide findTransferPath(java.lang.String name, Point2D startPosition, Point2D endPosition, TransferLine[] transferLines)
According to the specified starting and ending coordinates and transfer information to obtain detailed route information.
Traffic network name.findTransferPath
in interface TrafficTransferAnalyst
startPosition
- Starting point coordinates.endPosition
- Ending point coordinates.transferLines
- Transfer information.public TransferGuide findTransferPath(java.lang.String name, long startStopID, long endStopID, TransferLine[] transferLines)
According to the specified starting and ending stop and transfer information to obtain detailed route information.
Traffic network name.findTransferPath
in interface TrafficTransferAnalyst
startStopID
- Starting stop ID.endStopID
- Ending stop ID.transferLines
- Transfer information.public TransferStopInfo[] findStopsByKeyWord(java.lang.String name, java.lang.String keyWord, boolean returnPosition)
Find the matching sites in the current traffic network based on the site name.
Traffic network name.findStopsByKeyWord
in interface TrafficTransferAnalyst
keyWord
- Site name keyword.returnPosition
- Whether to return the site coordinate information.public void dispose()
Release the resource object.
dispose
in interface Disposable