|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INAServer2
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.
INAServer2 is the main interface on the NAServer object. It provides methods to perform network analysis in a stateless manner on a server.
INAServer2 provides a method that returns default analysis settings and, optionally, content of NAClasses present in the analysis layer by default or loaded from a layer stored on a server.
Method Summary | |
---|---|
INAServerSolverParams |
getSolverParameters2(String nALayerName,
String layerToken,
boolean populateNAClasses)
Default solver parameters for the specified network analysis layer. |
Methods inherited from interface com.esri.arcgis.networkanalyst.INAServer |
---|
getNALayerNames, getNetworkDescription, getSolverParameters, solve |
Method Detail |
---|
INAServerSolverParams getSolverParameters2(String nALayerName, String layerToken, boolean populateNAClasses) throws IOException, AutomationException
GetSolverParameters2 returns the NAServerSolverParams object (NAServerRouteParams, NAServerClosestFacilityParams, NAServerServiceAreaParams, NAServerLocationAllocationParams, NAServerODCostMatrixParams, NAServerVRPParams) corresponding to the NALayerName and LayerToken passed in. if PopulateNAClasses was set to True, returned NAServerSolverParams instance will contain correspondent recordsets populated with content of NAClasses.
As opposed to GetSolverParameters, NAServerSolverParams instance returned by GetSolverParameters2 does not contain MapDescription and ImageDescription populated, which significantly reduces response size.
You can pass this resulting object into the Solve method on NAServer to perform network analysis.
LayerToken can be obtained from NAServerSolverResults object if the instance of NAServerSolverParams previously passed to the Solve method had SaveLayerOnServer set to True.
This method can be useful when, for example, multiple clients are working with a shared network analysis layer stored on server, or shared layer originally was created and saved on server by another client process.
nALayerName
- The nALayerName (in)layerToken
- The layerToken (in)populateNAClasses
- The populateNAClasses (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 |