com.esri.arcgis.geodatabase
Class INetAttributesProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.geodatabase.INetAttributesProxy
All Implemented Interfaces:
INetAttributes, Externalizable, Serializable
Direct Known Subclasses:
INetAttributesEditProxy

public class INetAttributesProxy
extends com.esri.arcgis.interop.Dispatch
implements INetAttributes, Serializable

Provides access to members that get the disabled state and weight values of individual elements in the network.

When To Use

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.

Product Availability

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

See Also:
INetAttributesEdit, INetAttributes, Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  INetAttributesProxy()
           
  INetAttributesProxy(Object obj)
           
protected INetAttributesProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 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.
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

INetAttributesProxy

public INetAttributesProxy()

INetAttributesProxy

public INetAttributesProxy(Object obj)
                    throws IOException
Throws:
IOException

INetAttributesProxy

protected INetAttributesProxy(Object obj,
                              String iid)
                       throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

getDisabledState

public boolean getDisabledState(int eID,
                                int elementType)
                         throws IOException,
                                AutomationException
Returns the disabled state of the specified network element.

Remarks

True means the network element is disabled.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getDisabledState in interface INetAttributes
Parameters:
eID - The eID (in)
elementType - A com.esri.arcgis.geodatabase.esriElementType constant (in)
Returns:
The disabledState
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getWeightValue

public Object getWeightValue(int eID,
                             int elementType,
                             int weightInternalID)
                      throws IOException,
                             AutomationException
Returns the weight value of the specified network element for the specified weight.

Remarks

GetWeightValue will return the attribute value for the specified element based on the specified weight.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getWeightValue in interface INetAttributes
Parameters:
eID - The eID (in)
elementType - A com.esri.arcgis.geodatabase.esriElementType constant (in)
weightInternalID - The weightInternalID (in)
Returns:
A Variant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.