com.esri.arcgis.networkanalysis
Class INetElementBarriers2Proxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.networkanalysis.INetElementBarriersProxy
          extended by com.esri.arcgis.networkanalysis.INetElementBarriers2Proxy
All Implemented Interfaces:
INetElementBarriers, INetElementBarriers2, Externalizable, Serializable

public class INetElementBarriers2Proxy
extends INetElementBarriersProxy
implements INetElementBarriers2, Serializable

Provides access to members that specify a set of barriers by EIDs for the TraceFlowSolver object.

Remarks

Sets of junction barriers and edge barriers should be created seperately.

When To Use

Use the INetElementBarriers2 interface to create a set of barriers to pass to the TraceFlowSolver object.

Barriers are stopping points affecting a trace. For example, a downed powerline can be a barrier that affects a trace. Barriers do not affect the flow through a network. If you want to change the flow through a stand-alone logical network you can disable individual elements using the INetAttributesEdit::SetDisabledState method. For geometric networks, set the INetworkFeature::Enabled property to False.

Product Availability

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

Not all members are callable from Java. Please use INetElementBarriersGEN instead.

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
  INetElementBarriers2Proxy()
           
  INetElementBarriers2Proxy(Object obj)
           
protected INetElementBarriers2Proxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void removeListener(String iidStr, Object theListener)
           
 void setBarriersByEID(int count, int[] eIDs)
          Specifies a set of network element IDs to use as barriers.
 
Methods inherited from class com.esri.arcgis.networkanalysis.INetElementBarriersProxy
getElementType, getNetwork, setBarriers, setElementType, setNetworkByRef
 
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.networkanalysis.INetElementBarriers
getElementType, getNetwork, setBarriers, setElementType, setNetworkByRef
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

INetElementBarriers2Proxy

public INetElementBarriers2Proxy()

INetElementBarriers2Proxy

public INetElementBarriers2Proxy(Object obj)
                          throws IOException
Throws:
IOException

INetElementBarriers2Proxy

protected INetElementBarriers2Proxy(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 INetElementBarriersProxy
Throws:
IOException

removeListener

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

setBarriersByEID

public void setBarriersByEID(int count,
                             int[] eIDs)
                      throws IOException,
                             AutomationException
Specifies a set of network element IDs to use as barriers.

Remarks

The Network and ElementType properties must be set before calling SetBarriersByEID.

If there are values in the array that do not correspond to a valid EID in the specified Network, then the NetElementBarriers object simply ignores these values.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

This method is not callable from Java. Please use INetElementBarriersGEN::SetBarriersByEID.

Specified by:
setBarriersByEID in interface INetElementBarriers2
Parameters:
count - The count (in)
eIDs - The eIDs (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.