|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 |
|---|
| 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 |
|---|
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 INetworkBuilderProxyIOException
public void removeListener(String iidStr,
Object theListener)
throws IOException
removeListener in class INetworkBuilderProxyIOException
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 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.
addWeightToNetwork in interface INetworkBuilder2geometricNetwork - 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 INetworkBuilder2pGeometricNetwork - 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.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class INetworkBuilderProxyIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class INetworkBuilderProxyIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||