|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INetworkBuilder2
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.
Method Summary | |
---|---|
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. |
Methods inherited from interface com.esri.arcgis.networkanalysis.INetworkBuilder |
---|
rebuildNetwork |
Method Detail |
---|
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.
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.void deleteWeightFromNetwork(IGeometricNetwork pGeometricNetwork, String weightName) throws IOException, AutomationException
The DeleteWeightToNetwork method is not currently implemented.
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 |