|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.networkanalysis.NetElementBarriers
public class NetElementBarriers
A container for defining to the NetSolver which network elements have barriers.
The NetElementBarriers object contains references to barriers on a geometric network.
A NetElementBarriers object is used to specify element barriers for the TraceFlowSolver object. Because NetElementBarriers objects are co-creatable, you can use this class to specify barriers using code. Alternatively, by calling INetworkAnalysisExtBarriers::CreateElementBarriers, you can create NetElementBarriers objects that represent all the edge or junction barriers that were placed on the current network using the Utility Network Analyst toolbar.
com.esri.arcgis.editorext.UtilityNetworkAnalysisExt
,
Serialized FormConstructor Summary | |
---|---|
NetElementBarriers()
Constructs a NetElementBarriers using ArcGIS Engine. |
|
NetElementBarriers(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. NetElementBarriers theNetElementBarriers = (NetElementBarriers) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
getElementType()
Type of network element on which the barriers are placed. |
INetwork |
getNetwork()
Network on which the barrier set is placed. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
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 |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public NetElementBarriers() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic NetElementBarriers(Object obj) throws IOException
NetElementBarriers theNetElementBarriers = (NetElementBarriers) obj;
obj
to NetElementBarriers
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setNetworkByRef(INetwork network) throws IOException, AutomationException
setNetworkByRef
in interface INetElementBarriersGEN
network
- A reference to a com.esri.arcgis.geodatabase.INetwork (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INetwork getNetwork() throws IOException, AutomationException
getNetwork
in interface INetElementBarriersGEN
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setElementType(int elementType) throws IOException, AutomationException
Barriers can be placed on either edge or junction elements.
setElementType
in interface INetElementBarriersGEN
elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getElementType() throws IOException, AutomationException
getElementType
in interface INetElementBarriersGEN
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBarriers(int userClassID, int[] userIDs) throws IOException, AutomationException
The Network and ElementType properties must be set before calling SetBarriers.
setBarriers
in interface INetElementBarriersGEN
userClassID
- The userClassID (in)userIDs
- The userIDs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBarriersByEID(int[] eIDs) throws IOException, AutomationException
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.
setBarriersByEID
in interface INetElementBarriersGEN
eIDs
- The eIDs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |