com.esri.arcgis.networkanalysis
Class INetworkBuilder2Proxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.networkanalysis.INetworkBuilderProxy
          extended by com.esri.arcgis.networkanalysis.INetworkBuilder2Proxy
All Implemented Interfaces:
INetworkBuilder, INetworkBuilder2, Externalizable, Serializable

public class INetworkBuilder2Proxy
extends INetworkBuilderProxy
implements INetworkBuilder2, Serializable

Provides access to members that rebuild the logical network index for an existing geometric network.

Remarks

The INetworkBuilder2 interface provides access to methods that allow the addition and removal of weights from an existing geometric network.

Product Availability

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E
 
Constructor Summary
  INetworkBuilder2Proxy()
           
  INetworkBuilder2Proxy(Object obj)
           
protected INetworkBuilder2Proxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void addWeightToNetwork(IGeometricNetwork geometricNetwork, String weightName, int weightType, int bitGateSize, ISet weightAssociations)
          Adds a weight to an existing the geometric network, features are not changed in this process.
 void deleteWeightFromNetwork(IGeometricNetwork pGeometricNetwork, String weightName)
          Deletes a weight from an existing the geometric network, features are not changed in this process.
 void readExternal(ObjectInput in)
           
 void removeListener(String iidStr, Object theListener)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class com.esri.arcgis.networkanalysis.INetworkBuilderProxy
rebuildNetwork
 
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, queryInterface, release, setNativeMode, setPropertyByName, toString, vtblInvoke
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.networkanalysis.INetworkBuilder
rebuildNetwork
 

Constructor Detail

INetworkBuilder2Proxy

public INetworkBuilder2Proxy()

INetworkBuilder2Proxy

public INetworkBuilder2Proxy(Object obj)
                      throws IOException
Throws:
IOException

INetworkBuilder2Proxy

protected INetworkBuilder2Proxy(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 INetworkBuilderProxy
Throws:
IOException

removeListener

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

addWeightToNetwork

public void addWeightToNetwork(IGeometricNetwork geometricNetwork,
                               String weightName,
                               int weightType,
                               int bitGateSize,
                               ISet weightAssociations)
                        throws IOException,
                               AutomationException
Adds a weight to an existing the geometric network, features are not changed in this process.

Remarks

The AddWeightToNetwork method will add a weight to the geometric network with the specified name and the type. Additionally, the weight associations will be created for all feature class and field pairings that are specified with the weightAssociations arguement.

The weightAssociations arguement is a set of StringPairs. The StringPair is a set of strings where the first string represents the class name, the second the field name. Both must be supplied for the StringPair to be valid. Fully qualified strings are supported.

When specifying a WeightType not of type esriWTBitGate, set the bitGateSize parameter to 0.

If the network is on SDE and versioned, the addition of the weight will be reflected across all versions of the geometric network. The AddWeightToNetwork method will not act upon the features in the network, no snapping will occur and no orphan junction features will be created.

Weights cannot be specified under the following circumstances:

An exclusive schema lock must be obtained before using the AddWeightToNetwork method. See the ISchemaLock interface for information on listing existing schema locks and obtaining an exclusive schema lock.

Product Availability

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

Specified by:
addWeightToNetwork in interface INetworkBuilder2
Parameters:
geometricNetwork - A reference to a com.esri.arcgis.geodatabase.IGeometricNetwork (in)
weightName - The weightName (in)
weightType - A com.esri.arcgis.geodatabase.esriWeightType constant (in)
bitGateSize - The bitGateSize (in)
weightAssociations - A reference to a com.esri.arcgis.system.ISet (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteWeightFromNetwork

public void deleteWeightFromNetwork(IGeometricNetwork pGeometricNetwork,
                                    String weightName)
                             throws IOException,
                                    AutomationException
Deletes a weight from an existing the geometric network, features are not changed in this process.

Remarks

The DeleteWeightToNetwork method is not currently implemented.

Product Availability

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

Specified by:
deleteWeightFromNetwork in interface INetworkBuilder2
Parameters:
pGeometricNetwork - A reference to a com.esri.arcgis.geodatabase.IGeometricNetwork (in)
weightName - The weightName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class INetworkBuilderProxy
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class INetworkBuilderProxy
Throws:
IOException
ClassNotFoundException