ArcObjects Library Reference (NetworkAnalyst)  

INASolver Interface

Provides access to the common interface for all network solvers.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Members

Description
Method Bind Re-associate the solver with the given network dataset and its schema.
Read-only property CanAccumulateAttributes Indicates if the solver supports using accumulate network attributes.
Read-only property CanUseHierarchy Indicates if the solver supports using a hierarchy network attribute.
Read-only property ClassDefinitions The inputs and outputs defined by the solver.
Method CreateContext Creates the analysis context for the solver.
Method CreateLayer Makes a new network analysis layer for the solver context.
Read-only property DisplayName The display name of the solver.
Read-only property Name The name of the solver.
Read-only property Properties The properties for the solver.
Method Solve Perform the network analysis and construct results.
Method UpdateContext Update the analysis context for the solver.
Method UpdateLayer Updates the layer and indicates if the layer was updated.

CoClasses that implement INASolver

CoClasses and Classes Description
NAClosestFacilitySolver Performs closest facility analysis.
NALocationAllocationSolver Solves various location-allocation problem types
NAODCostMatrixSolver Performs origin-destination matrix analysis.
NARouteSolver Performs shortest path and tour analysis.
NAServiceAreaSolver Performs service area analysis.
NAVRPSolver Performs VRP network analysis.

Remarks

The INASolver interface is a common interface used by all of the network solvers. It can be used to access some of the standard properties from the solver.  It is also used to create NAContext and NALayer objects and to perform the actual network analysis.

.NET Snippets

Statements - Set OD Cost Matrix Properties | Create OD Cost Matrix Layer | Create Route Layer | Set OD Cost Matrix Properties | Create Vehicle Routing Problem Layer | Set Solver Properties | Set Service Area Properties | Create Service Area Layer | Statements - Set Service Area Properties | Create Location Allocation Layer | Set Vehicle Routing Problem Properties | Create Closest Facility Layer | Statements - Set Route Properties | Set Service Area Properties2 | Set Route Properties | Statements - Set Solver Properties |

.NET Samples

Closest facility solver (Code Files: frmClosestFacilitySolver) | Location-allocation solver (Code Files: frmLocationAllocationSolver) | Network Analyst Engine application (Code Files: frmNALayerProperties) | Origin-destination cost matrix solver (Code Files: frmODCostMatrixSolver) | Route layer (Code Files: Program) | Service area solver (Code Files: frmServiceAreaSolver) | Subset network evaluators (Code Files: SubsetHelperUI) | Vehicle routing problem solver (Code Files: frmVRPSolver) |

.NET Related Topics

How to set up a Network Analyst solve to work with the undo/redo stack |