|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.networkanalysis.INetworkBuilderProxy com.esri.arcgis.networkanalysis.INetworkBuilder2Proxy
public class INetworkBuilder2Proxy
Provides access to members that rebuild the logical network index for an existing geometric network.
The INetworkBuilder2 interface provides access to methods that allow the addition and removal of weights from an existing geometric network.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
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 |
removeListener(String iidStr,
Object theListener)
|
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, 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.networkanalysis.INetworkBuilder |
---|
rebuildNetwork |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public INetworkBuilder2Proxy()
public INetworkBuilder2Proxy(Object obj) throws IOException
IOException
protected INetworkBuilder2Proxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class INetworkBuilderProxy
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class INetworkBuilderProxy
IOException
public void addWeightToNetwork(IGeometricNetwork geometricNetwork, String weightName, int weightType, int bitGateSize, ISet weightAssociations) throws IOException, AutomationException
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 in the weightAssociations parameter.
The weightAssociations parameter is a set of StringPair objects. A 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 is 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.
addWeightToNetwork
in interface INetworkBuilder2
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deleteWeightFromNetwork(IGeometricNetwork pGeometricNetwork, String weightName) throws IOException, AutomationException
The DeleteWeightToNetwork method is not currently implemented.
deleteWeightFromNetwork
in interface INetworkBuilder2
pGeometricNetwork
- A reference to a com.esri.arcgis.geodatabase.IGeometricNetwork (in)weightName
- The weightName (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 |