com.esri.arcgis.datasourcesfile
Interface ISMRouterSetup2

All Superinterfaces:
ISMRouterSetup, Serializable
All Known Implementing Classes:
ISMRouterSetup2Proxy, SMRouter

public interface ISMRouterSetup2
extends ISMRouterSetup, Serializable

Deprecated as of 10.1. Provides access to router restrictions settings.

Description

This interface is new at ArcGIS 9.3. It supersedes ISMRouterSetup2.

Product Availability

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


Method Summary
 void clearRestriction(int index)
          The method removes restriction at specified position from the list.
 ISMRestriction getRestriction(int index)
          Restriction at the position, specified by index.
 int getRestrictionCount()
          Number of restrictions in the list, which will be applied when finding route.
 
Methods inherited from interface com.esri.arcgis.datasourcesfile.ISMRouterSetup
clearAllRestrictions, getBacktrackPolicy, getDirectionsLengthUnits, setBacktrackPolicy, setDirectionsLengthUnits, setRestriction
 

Method Detail

getRestrictionCount

int getRestrictionCount()
                        throws IOException,
                               AutomationException
Number of restrictions in the list, which will be applied when finding route.

Product Availability

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

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

getRestriction

ISMRestriction getRestriction(int index)
                              throws IOException,
                                     AutomationException
Restriction at the position, specified by index.

Product Availability

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

Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.datasourcesfile.ISMRestriction
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clearRestriction

void clearRestriction(int index)
                      throws IOException,
                             AutomationException
The method removes restriction at specified position from the list.

Product Availability

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

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