com.esri.arcgis.networkanalysis
Interface INetElementBarriers2

All Superinterfaces:
INetElementBarriers, Serializable
All Known Implementing Classes:
INetElementBarriers2Proxy

public interface INetElementBarriers2
extends INetElementBarriers, 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.

Supported Platforms

Windows, Solaris, Linux

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


Method Summary
 void setBarriersByEID(int count, int[] eIDs)
          Specifies a set of network element IDs to use as barriers.
 
Methods inherited from interface com.esri.arcgis.networkanalysis.INetElementBarriers
getElementType, getNetwork, setBarriers, setElementType, setNetworkByRef
 

Method Detail

setBarriersByEID

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.

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