com.esri.arcgis.geodatabase
Class INetAttributesEditProxy

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

public class INetAttributesEditProxy
extends INetAttributesProxy
implements INetAttributesEdit, Serializable

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

Remarks

You should only directly manipulate the value of a weight in a stand-alone logical network.

When To Use

Use the INetAttributesEdit interface when you want to change the disabled state of an element in your network or when you want to modify the value of a weight.

Disabling an element means setting its DisabledState to "True".
This interface is designed specifically for the editing of a stand-alone logical network, a logical network that does not have an associated geometric network. It is imperative that if you have a geometric network, the logical network must be edited through its associated geometric network. You risk data corruption if you use the INetAttributesEdit interface on logical networks that have an associated geometric network. The logical network maintains its own weight values for the purpose of faster access. Directly manipulating the weight values or Disabled state of elements in a logical network with a corresponding geometric network, will cause the weight values from the feature to be out of sync with the weight values maintained by the logical network.
For geometric networks the weight value or Disabled state should only be edited on the feature and not on the logical network element. Use IRowBuffer::Value and IRow::Store to modify the value of a feature attribute.

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
  INetAttributesEditProxy()
           
  INetAttributesEditProxy(Object obj)
           
protected INetAttributesEditProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void removeListener(String iidStr, Object theListener)
           
 void setDisabledState(int eID, int elementType, boolean disableState)
          Sets the disabled state of the specified network element.
 void setWeightValue(int eID, int elementType, int weightInternalID, Object weightValue)
          Sets the weight value of the specified network element for the specified weight.
 
Methods inherited from class com.esri.arcgis.geodatabase.INetAttributesProxy
getDisabledState, getWeightValue
 
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
 
Methods inherited from interface com.esri.arcgis.geodatabase.INetAttributes
getDisabledState, getWeightValue
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

INetAttributesEditProxy

public INetAttributesEditProxy()

INetAttributesEditProxy

public INetAttributesEditProxy(Object obj)
                        throws IOException
Throws:
IOException

INetAttributesEditProxy

protected INetAttributesEditProxy(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 INetAttributesProxy
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class INetAttributesProxy
Throws:
IOException

setDisabledState

public void setDisabledState(int eID,
                             int elementType,
                             boolean disableState)
                      throws IOException,
                             AutomationException
Sets the disabled state of the specified network element.

Remarks

Disabling an element in the network is different than creating a barrier on a network element. A disabled element will have an effect when setting the flow direction on a network. Setting barriers on a network through the INetworkAnalysisExtBarriers interface only affects traces.

Only use this method on stand-alone logical networks. For geometric networks, use IRowBuffer::Value and IRow::Store to modify the value of the feature attribute.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

setWeightValue

public void setWeightValue(int eID,
                           int elementType,
                           int weightInternalID,
                           Object weightValue)
                    throws IOException,
                           AutomationException
Sets the weight value of the specified network element for the specified weight.

Remarks

SetWeightValue will update the attribute value defined by the specified weight for the specified element. Use this method when you want to change the attribute setting a weight will use during tracing routines.

Only use this method on stand-alone logical networks. For geometric networks, use IRowBuffer::Value and IRow::Store to modify the value of the feature attribute.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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