|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INetAttributes
Provides access to members that get the disabled state and weight values of individual elements in the network.
INetAttributes refers to the attributes of individual network elements not of the entire network. Use the INetAttributes interface when you want to know whether a particular element in your network is disabled. Disabled elements are different from barriers on a network. By disabling an element you are not only stopping a trace, but also are affecting the flow through that particular element.
You can also get the weight value on a given element. You do have the ability to edit this value using the INetAttributesEdit interface. However, you should only do this in the case where you have a logical network with no associated geometric network. For a geometric network you should change a weight value by editing the value in the attribute table for the particular feature. Use IRowBuffer::Value and IRow::Store to modify the value of a feature attribute.
The logical network maintains its own weight values for the purpose of faster access. Directly manipulating the logical network's weight values will cause the weight values from the feature to be out of sync with the weight values maintained by the logical network.
INetAttributesEdit
,
INetAttributes
Method Summary | |
---|---|
boolean |
getDisabledState(int eID,
int elementType)
Returns the disabled state of the specified network element. |
Object |
getWeightValue(int eID,
int elementType,
int weightInternalID)
Returns the weight value of the specified network element for the specified weight. |
Method Detail |
---|
boolean getDisabledState(int eID, int elementType) throws IOException, AutomationException
eID
- The eID (in)elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getWeightValue(int eID, int elementType, int weightInternalID) throws IOException, AutomationException
GetWeightValue will return the attribute value for the specified element based on the specified weight.
eID
- The eID (in)elementType
- A com.esri.arcgis.geodatabase.esriElementType constant (in)weightInternalID
- The weightInternalID (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 |