com.esri.arcgis.networkanalysis
Interface INetSolver

All Superinterfaces:
Serializable
All Known Implementing Classes:
TraceFlowSolver

public interface INetSolver
extends Serializable

Provides access to members that specify the network and the barriers to be used with this solver.

Remarks

When you create a TraceFlowSolver object, you also get a reference to a NetSolver object, since TraceFlowSolver inhereits from NetSolver.

Disabling an element class through the NetSolver object only disables it for your tracing operations. This does not affect how IUtilityNetwork::SetFlowDirection sets flow direction. If you want to disable elements for setting flow direction, INetAttributesEdit::SetDisabledState will disable network elements in stand-alone logical networks, and INetworkFeature::Enabled will disable network features in geometric networks.

When To Use

Use the INetSolver interface to specify which network on which you want to perform an analysis, which elements in the network are barriers, and which element classes are disabled.

Product Availability

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

See Also:
INetSolverWeights, ITraceFlowSolver, INetSolver

Method Summary
 void disableElementClass(int classID)
          Sets an element class as disabled within this solver.
 void setElementBarriersByRef(int elementType, INetElementBarriers rhs2)
          Network element barrier set to be used in this solver.
 void setSelectionSetBarriersByRef(ISelectionSetBarriers rhs1)
          Selection set barriers to be used in this solver.
 void setSourceNetworkByRef(INetwork rhs1)
          Source network to be used in this solver.
 

Method Detail

setSourceNetworkByRef

void setSourceNetworkByRef(INetwork rhs1)
                           throws IOException,
                                  AutomationException
Source network to be used in this solver.

Remarks

The SourceNetwork is the network on which you want to solve.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.INetwork (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setElementBarriersByRef

void setElementBarriersByRef(int elementType,
                             INetElementBarriers rhs2)
                             throws IOException,
                                    AutomationException
Network element barrier set to be used in this solver.

Remarks

Tells the solver what set of barriers you want to use.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
elementType - A com.esri.arcgis.geodatabase.esriElementType constant (in)
rhs2 - A reference to a com.esri.arcgis.networkanalysis.INetElementBarriers (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSelectionSetBarriersByRef

void setSelectionSetBarriersByRef(ISelectionSetBarriers rhs1)
                                  throws IOException,
                                         AutomationException
Selection set barriers to be used in this solver.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
rhs1 - A reference to a com.esri.arcgis.networkanalysis.ISelectionSetBarriers (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

disableElementClass

void disableElementClass(int classID)
                         throws IOException,
                                AutomationException
Sets an element class as disabled within this solver.

Remarks

There is no means to reenable an element class that you have disabled with this method. For enabling and disabling element classes for tracing operations use INetworkAnalysisExtBarriers::SetDisabledLayer.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
classID - The classID (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.