com.esri.arcgis.networkanalyst
Interface INAServerSolverResults

All Superinterfaces:
Serializable
All Known Subinterfaces:
INAServerClosestFacilityResults, INAServerClosestFacilityResults2, INAServerRouteResults, INAServerRouteResults2, INAServerServiceAreaResults
All Known Implementing Classes:
NAServerClosestFacilityResults, NAServerRouteResults, NAServerServiceAreaResults

public interface INAServerSolverResults
extends Serializable

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

Remarks

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

There are methods to get the MapImage and the SolverMessages returned by the solver.

Product Availability

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


Method Summary
 IMapImage getMapImage()
          MapImage containing the network analysis result.
 IGPMessages getSolveMessages()
          Error and warning messages returned by the network analysis solver.
 

Method Detail

getMapImage

IMapImage getMapImage()
                      throws IOException,
                             AutomationException
MapImage containing the network analysis result.

Remarks

MapImage returns the image drawn during NAServer::Solve using the NAServerSolverParams::MapDescription and NAServerSolverParams::ImageDescription properties.

Product Availability

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

Returns:
A reference to a com.esri.arcgis.carto.IMapImage
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSolveMessages

IGPMessages getSolveMessages()
                             throws IOException,
                                    AutomationException
Error and warning messages returned by the network analysis solver.

Remarks

SolverMessages returns an IGPMessages interface pointer to a GPMessages object that contains informational messages that were generated during NAServer::Solve.

Product Availability

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

Returns:
A reference to a com.esri.arcgis.geodatabase.IGPMessages
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.