com.esri.arcgis.geodatabase
Interface INetworkCollection

All Superinterfaces:
Serializable
All Known Subinterfaces:
INetworkCollection2
All Known Implementing Classes:
FeatureDataset, INetworkCollection2Proxy, INetworkCollectionProxy

public interface INetworkCollection
extends Serializable

Provides access to members that create and maintain information about geometric networks.

Superseded By

INetworkCollection2

Description

The INetworkCollection interface provides access to the geometric networks in the feature dataset, and also lets you create them.

Remarks

Note that if your intention is only to browse for the set of networks in a feature dataset then it is not necessary to open the feature dataset and invoke methods on INetworkCollection. The GeometricNetworkNames method on a FeatureDatasetName object can be used to efficiently obtain this information.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux


Method Summary
 IGeometricNetwork createGeometricNetwork(String name, int networkType, boolean buildNormalizedTables)
          Creates a new GeometricNetwork in this FeatureDataset.
 IGeometricNetwork getGeometricNetwork(int index)
          The GeometricNetwork associated with the specified index value.
 IGeometricNetwork getGeometricNetworkByName(String name)
          The GeometricNetwork with the specified Name.
 int getGeometricNetworkCount()
          The number of GeometricNetworks in this FeatureDataset.
 

Method Detail

getGeometricNetworkCount

int getGeometricNetworkCount()
                             throws IOException,
                                    AutomationException
The number of GeometricNetworks in this FeatureDataset.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
The numNetworks
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGeometricNetwork

IGeometricNetwork getGeometricNetwork(int index)
                                      throws IOException,
                                             AutomationException
The GeometricNetwork associated with the specified index value.

Product Availability

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

Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IGeometricNetwork
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGeometricNetworkByName

IGeometricNetwork getGeometricNetworkByName(String name)
                                            throws IOException,
                                                   AutomationException
The GeometricNetwork with the specified Name.

Product Availability

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

Parameters:
name - The name (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IGeometricNetwork
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createGeometricNetwork

IGeometricNetwork createGeometricNetwork(String name,
                                         int networkType,
                                         boolean buildNormalizedTables)
                                         throws IOException,
                                                AutomationException
Creates a new GeometricNetwork in this FeatureDataset.

Remarks

When you create a geometric network you also create a corresponding logical network. To get the logical network you need to call IGeometricNetwork::Network which will return the INetwork interface.
Any value supplied for the BuildNormalizedTables parameter is ignored and is reserved for future development.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
name - The name (in)
networkType - A com.esri.arcgis.geodatabase.esriNetworkType constant (in)
buildNormalizedTables - The buildNormalizedTables (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IGeometricNetwork
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.