Class TrafficTransferAnalystImpl
- java.lang.Object
-
- com.supermap.services.components.impl.TrafficTransferAnalystImpl
-
- All Implemented Interfaces:
- ComponentContextAware, Disposable, TrafficTransferAnalyst
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 Summary
Constructors Constructor and Description TrafficTransferAnalystImpl()
-
Method Summary
Methods Modifier and Type Method and Description voiddispose()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.TransferGuidefindTransferPath(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.TransferGuidefindTransferPath(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.TransferSolutionsfindTransferSolutions(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.TransferSolutionsfindTransferSolutions(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.voidsetComponentContext(ComponentContext context)Sets the traffic transfer analysis service component context.
-
-
-
Method Detail
-
setComponentContext
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.
- Specified by:
setComponentContextin interfaceComponentContextAware- Parameters:
context-
-
getNames
public java.util.List<java.lang.String> getNames()
Gets a list of traffic network names.
- Specified by:
getNamesin interfaceTrafficTransferAnalyst- Returns:
- List of traffic network names.
-
findTransferSolutions
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.- Specified by:
findTransferSolutionsin interfaceTrafficTransferAnalyst- Parameters:
startPosition- Starting point coordinates.endPosition- Ending point coordinates.trafficTransferAnalystParameter- Traffic transfer analysis parameters.- Returns:
- Traffic transfer plan collection.
-
findTransferSolutions
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.- Specified by:
findTransferSolutionsin interfaceTrafficTransferAnalyst- Parameters:
startStopID- Starting stop ID.endStopID- Ending stop ID.trafficTransferAnalystParameter- Traffic transfer analysis parameters.- Returns:
- Traffic transfer plan collection.
-
findTransferPath
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.- Specified by:
findTransferPathin interfaceTrafficTransferAnalyst- Parameters:
startPosition- Starting point coordinates.endPosition- Ending point coordinates.transferLines- Transfer information.- Returns:
- Complete route information.
-
findTransferPath
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.- Specified by:
findTransferPathin interfaceTrafficTransferAnalyst- Parameters:
startStopID- Starting stop ID.endStopID- Ending stop ID.transferLines- Transfer information.- Returns:
- Complete route information.
-
findStopsByKeyWord
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.- Specified by:
findStopsByKeyWordin interfaceTrafficTransferAnalyst- Parameters:
keyWord- Site name keyword.returnPosition- Whether to return the site coordinate information.- Returns:
- Matched sites array.
-
dispose
public void dispose()
Release the resource object.
- Specified by:
disposein interfaceDisposable
-
-