com.esri.arcgis.networkanalyst
Interface INAServerSolverResults2

All Superinterfaces:
INAServerSolverResults, Serializable
All Known Implementing Classes:
NAServerClosestFacilityResults, NAServerLocationAllocationResults, NAServerODCostMatrixResults, NAServerRouteResults, NAServerServiceAreaResults, NAServerVRPResults

public interface INAServerSolverResults2
extends INAServerSolverResults, Serializable

Deprecated as of 10.0. Provides access to properties that contain the results of performing network analysis with NAServer.

Remarks

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.

INAServerSolverResults2 provides methods on an NAServerSolverResults object (NAServerRouteResults, NAServerClosestFacilityResults, NAServerServiceAreaResults, NAServerLocationAllocationResults, NAServerODCostMatrixResults, and NAServerVRPResults) returned by the Solve method on INAServer to retrieve the results of the network analysis.

There are methods to get the LayerToken and the SolveErrorCode returned by the solver.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 String getLayerToken()
          Token identifying of the network analysis layer saved on the server.
 int getSolveErrorCode()
          Error code returned by solve operation if it failed.
 
Methods inherited from interface com.esri.arcgis.networkanalyst.INAServerSolverResults
getMapImage, getSolveMessages
 

Method Detail

getSolveErrorCode

int getSolveErrorCode()
                      throws IOException,
                             AutomationException
Error code returned by solve operation if it failed.

Remarks

SolveErrorCode contains returned error code, if NAServerSolverParams.ReturnPartialResultsOnError was True and Solve failed.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The errorCode
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLayerToken

String getLayerToken()
                     throws IOException,
                            AutomationException
Token identifying of the network analysis layer saved on the server.

Remarks

LayerToken contains token to the network analysis layer saved on the server containing the results of the analsyis. This is only populated when NAServerSolverParams.SaveLayerOnServer was set to True or NAServerSolverParams.LayerToken was populated with a valid value.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The layerToken
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.