|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INAServer
Deprecated as of 10.0. Provides access to methods that perform network analysis in a stateless environment within a MapServer.
At version 10.1, ArcGIS for Server no longer supports performing network analysis via local connections using the GISServer and GISClient APIs. Use the SOAP or REST API instead.
INAServer has been superseded by INAServer2.
Method Summary | |
---|---|
String[] |
getNALayerNames(int layerType)
Array of network analysis layers of a particular analysis type. |
INAServerNetworkDescription |
getNetworkDescription(String nALayerName)
Description of the network dataset associated with the specified network analysis layer. |
INAServerSolverParams |
getSolverParameters(String nALayerName)
Default solver parameters for the specified network analysis layer. |
INAServerSolverResults |
solve(INAServerSolverParams nAServerSolverParams)
Perform network analysis based on the input solve parameters. |
Method Detail |
---|
String[] getNALayerNames(int layerType) throws IOException, AutomationException
GetNALayerNames returns an array of names of NALayers of a given type. For example, you could use this method to find the names of all of the route analysis layers in the default map of the map server.
layerType
- A com.esri.arcgis.networkanalyst.esriNAServerLayerType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INAServerNetworkDescription getNetworkDescription(String nALayerName) throws IOException, AutomationException
GetNetworkDescription returns an NAServerNetworkDescription object that allows you to retrieve things like the name of the network dataset as well as the sources and attributes within the network dataset.
nALayerName
- The nALayerName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INAServerSolverParams getSolverParameters(String nALayerName) throws IOException, AutomationException
GetSolverParameters returns the NAServerSolverParams object (NAServerRouteParams, NAServerClosestFacilityParams, NAServerServiceAreaParams, NAServerLocationAllocationParams, NAServerODCostMatrixParams, NAServerVRPParams) corresponding to the NALayer name passed in. The parameter object returned will have defaults based on the NALayer it is referencing.
You can pass this resulting object into the Solve method on NAServer to perform network analysis.
nALayerName
- The nALayerName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INAServerSolverResults solve(INAServerSolverParams nAServerSolverParams) throws IOException, AutomationException
Solve performs network analysis based on the NAServerSolverParams object (NAServerRouteParams, NAServerClosestFacilityParams, NAServerServiceAreaParams) that was passed in and returns it's output through an NAServerSolverResults object (NAServerRouteResults, NAServerClosestFacilityResults, NAServerServiceAreaParams).
nAServerSolverParams
- A reference to a com.esri.arcgis.networkanalyst.INAServerSolverParams (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |