com.esri.arcgis.datasourcesfile
Class SMNetBarriersCollection

java.lang.Object
  extended by com.esri.arcgis.datasourcesfile.SMNetBarriersCollection
All Implemented Interfaces:
ISMNetBarriersCollection, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class SMNetBarriersCollection
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ISMNetBarriersCollection

Deprecated as of 10.1. The collection of network barriers.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
SMNetBarriersCollection(Object obj)
          Construct a SMNetBarriersCollection using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 void add(ISMNetBarrier pItem)
          Adds a barrier to the collection.
 void clear()
          Removes all barriers from the collection.
 boolean equals(Object o)
          Compare this object with another
 int hashCode()
          the hashcode for this object
 void remove(int lID)
          Removes a barrier with a specified ID from the collection.
 
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

SMNetBarriersCollection

public SMNetBarriersCollection(Object obj)
                        throws IOException
Construct a SMNetBarriersCollection using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to SMNetBarriersCollection.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
SMNetBarriersCollection o = (SMNetBarriersCollection)obj; // will not work

SMNetBarriersCollection o = new SMNetBarriersCollection(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
IOException - if there are interop problems SMNetBarriersCollection theSMNetBarriersCollection = (SMNetBarriersCollection) obj;
Method Detail

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(ISMNetBarrier pItem)
         throws IOException,
                AutomationException
Adds a barrier to the collection.

Description

Adds the network barrier to the collection.

Product Availability

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

Specified by:
add in interface ISMNetBarriersCollection
Parameters:
pItem - A reference to a com.esri.arcgis.datasourcesfile.ISMNetBarrier (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

public void remove(int lID)
            throws IOException,
                   AutomationException
Removes a barrier with a specified ID from the collection.

Description

Removes the network barrier from the collection.

Product Availability

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

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

clear

public void clear()
           throws IOException,
                  AutomationException
Removes all barriers from the collection.

Description

Removes all barriers from the collection.

Product Availability

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

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