com.esri.arcgis.datasourcesfile
Class ISMRouterSetup2Proxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.datasourcesfile.ISMRouterSetupProxy
          extended by com.esri.arcgis.datasourcesfile.ISMRouterSetup2Proxy
All Implemented Interfaces:
ISMRouterSetup, ISMRouterSetup2, Externalizable, Serializable

public class ISMRouterSetup2Proxy
extends ISMRouterSetupProxy
implements ISMRouterSetup2, 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.

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  ISMRouterSetup2Proxy()
           
  ISMRouterSetup2Proxy(Object obj)
           
protected ISMRouterSetup2Proxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 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.
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.datasourcesfile.ISMRouterSetupProxy
clearAllRestrictions, getBacktrackPolicy, getDirectionsLengthUnits, setBacktrackPolicy, setDirectionsLengthUnits, setRestriction
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.datasourcesfile.ISMRouterSetup
clearAllRestrictions, getBacktrackPolicy, getDirectionsLengthUnits, setBacktrackPolicy, setDirectionsLengthUnits, setRestriction
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

ISMRouterSetup2Proxy

public ISMRouterSetup2Proxy()

ISMRouterSetup2Proxy

public ISMRouterSetup2Proxy(Object obj)
                     throws IOException
Throws:
IOException

ISMRouterSetup2Proxy

protected ISMRouterSetup2Proxy(Object obj,
                               String iid)
                        throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class ISMRouterSetupProxy
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class ISMRouterSetupProxy
Throws:
IOException

getRestrictionCount

public 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.

Specified by:
getRestrictionCount in interface ISMRouterSetup2
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getRestriction

public 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.

Specified by:
getRestriction in interface ISMRouterSetup2
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

public 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.

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