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

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

Remarks

INAServerSolverResults2 provides methods on an NAServerSolverResults object (NAServerRouteResults, NAServerClosestFacilityResults, NAServerServiceAreaResults, NAServerLocationAllocationResults, NAServerODCostMatrixResults, 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.