com.esri.arcgis.networkanalysis
Class SelectionSetBarriers

java.lang.Object
  extended by com.esri.arcgis.networkanalysis.SelectionSetBarriers
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, ISelectionSetBarriers, Serializable

public class SelectionSetBarriers
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ISelectionSetBarriers

A container for defining to the NetSolver which network elements to treat as barriers.

Description

The SelectionSetBarriers object contains a reference to the selected features on the current network.

Remarks

A SelectionSetBarriers object is used to specify selection set barriers for the TraceFlowSolver object. Because SelectionSetBarriers objects are co-creatable, you can use this class to specify barriers using code. Alternatively, by calling INetworkAnalysisExtBarriers::CreateSelectionBarriers, you can create a SelectionSetBarriers object based on the selected features and the SelectionSemantics property on the Utility Network Analysis extension.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
com.esri.arcgis.editorext.UtilityNetworkAnalysisExt, Serialized Form

Constructor Summary
SelectionSetBarriers()
          Constructs a SelectionSetBarriers using ArcGIS Engine.
SelectionSetBarriers(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
SelectionSetBarriers theSelectionSetBarriers = (SelectionSetBarriers) obj;
 
Method Summary
 void add(int userClassID, int userID)
          Adds a network feature to the set of barriers.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 void not()
          Specifies that the network features not in this set act as barriers.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

SelectionSetBarriers

public SelectionSetBarriers()
                     throws IOException,
                            UnknownHostException
Constructs a SelectionSetBarriers using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

SelectionSetBarriers

public SelectionSetBarriers(Object obj)
                     throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
SelectionSetBarriers theSelectionSetBarriers = (SelectionSetBarriers) obj;

Construct a SelectionSetBarriers using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to SelectionSetBarriers.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

add

public void add(int userClassID,
                int userID)
         throws IOException,
                AutomationException
Adds a network feature to the set of barriers.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
add in interface ISelectionSetBarriers
Parameters:
userClassID - The userClassID (in)
userID - The userID (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

not

public void not()
         throws IOException,
                AutomationException
Specifies that the network features not in this set act as barriers.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
not in interface ISelectionSetBarriers
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.