com.esri.arcgis.networkanalysis
Class NetElementBarriers

java.lang.Object
  extended by com.esri.arcgis.networkanalysis.NetElementBarriers
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, INetElementBarriersGEN, ISupportErrorInfo, java.io.Serializable

public class NetElementBarriers
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, INetElementBarriersGEN, ISupportErrorInfo

COM Class 'NetElementBarriers'. Generated 3/19/2015 1:20:44 PM from 'C:\ArcGIS\COM\esriNetworkAnalysis.olb'

Description 'A container for defining to the NetSolver which network elements have barriers.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.networkanalysis.INetElementBarriersGEN
IID, IIDd940e0c1_5918_4601_bafd_0ff949657b22, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
 
Constructor Summary
NetElementBarriers()
          Constructs a NetElementBarriers using ArcGIS Engine.
NetElementBarriers(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
NetElementBarriers theNetElementBarriers = (NetElementBarriers) obj;
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 int getElementType()
          Type of network element on which the barriers are placed.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 INetwork getNetwork()
          Network on which the barrier set is placed.
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 void release()
          Release a NetElementBarriers.
 void setBarriers(int userClassID, int[] userIDs)
          Specifies a set of network features to use as barriers.
 void setBarriersByEID(int[] eIDs)
          Specifies a set of network element IDs to use as barriers.
 void setElementType(int elementType)
          Type of network element on which the barriers are placed.
 void setNetworkByRef(INetwork network)
          Network on which the barrier set is placed.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetElementBarriers

public NetElementBarriers()
                   throws java.io.IOException,
                          java.net.UnknownHostException
Constructs a NetElementBarriers using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

NetElementBarriers

public NetElementBarriers(java.lang.Object obj)
                   throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
NetElementBarriers theNetElementBarriers = (NetElementBarriers) obj;

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

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

getClsid

public static java.lang.String getClsid()
getClsid.


equals

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

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a NetElementBarriers.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

setNetworkByRef

public void setNetworkByRef(INetwork network)
                     throws java.io.IOException,
                            AutomationException
Network on which the barrier set is placed.

Specified by:
setNetworkByRef in interface INetElementBarriersGEN
Parameters:
network - A reference to a com.esri.arcgis.geodatabase.INetwork (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNetwork

public INetwork getNetwork()
                    throws java.io.IOException,
                           AutomationException
Network on which the barrier set is placed.

Specified by:
getNetwork in interface INetElementBarriersGEN
Returns:
A reference to a com.esri.arcgis.geodatabase.INetwork
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setElementType

public void setElementType(int elementType)
                    throws java.io.IOException,
                           AutomationException
Type of network element on which the barriers are placed.

Specified by:
setElementType in interface INetElementBarriersGEN
Parameters:
elementType - A com.esri.arcgis.geodatabase.esriElementType constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getElementType

public int getElementType()
                   throws java.io.IOException,
                          AutomationException
Type of network element on which the barriers are placed.

Specified by:
getElementType in interface INetElementBarriersGEN
Returns:
A com.esri.arcgis.geodatabase.esriElementType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setBarriers

public void setBarriers(int userClassID,
                        int[] userIDs)
                 throws java.io.IOException,
                        AutomationException
Specifies a set of network features to use as barriers.

Specified by:
setBarriers in interface INetElementBarriersGEN
Parameters:
userClassID - The userClassID (in)
userIDs - The userIDs (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setBarriersByEID

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

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

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.