com.esri.arcgis.geodatabase
Interface INetworkCollection2

All Superinterfaces:
INetworkCollection, Serializable
All Known Implementing Classes:
FeatureDataset, INetworkCollection2Proxy

public interface INetworkCollection2
extends INetworkCollection, Serializable

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

Remarks

INetworkCollection2 was added to provide a mechanism for allowing a configuration keyword to be provided for the CreateGeometricNetwork method and to designate the format for storing IDs in a geometric network. This configuration keyword will describe how the logical network tables and their indexes are stored in the database. The storage format can be specified as either narrow or wide. Networks with a narrow format can only contain feature classes with class IDs less than 10,000 while networks with a wide format have no limitation on the feature class ID value. It is recommended that the format be specified as wide unless you specifically require your network to be built in the narrow format.

Product Availability

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


Method Summary
 IGeometricNetwork createGeometricNetworkEx(String name, int networkType, boolean buildNormalizedTables, String configKeyword, int formatNum)
          Creates a new GeometricNetwork with a configuration keyword in this FeatureDataset.
 int getFormatNumber(int index)
          The specified format number.
 int getFormatNumberCount()
          The count of valid format numbers.
 int getMaxStorableClassID(int formatNum)
          Returns the maximum storable feature class ID for the given format number.
 
Methods inherited from interface com.esri.arcgis.geodatabase.INetworkCollection
createGeometricNetwork, getGeometricNetwork, getGeometricNetworkByName, getGeometricNetworkCount
 

Method Detail

getFormatNumberCount

int getFormatNumberCount()
                         throws IOException,
                                AutomationException
The count of valid format numbers.

Remarks

The FormatNumberCount will return the count of the currently implemented formats. Use FormatNumberCount - 1 to iterate through FormatNumber.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

getFormatNumber

int getFormatNumber(int index)
                    throws IOException,
                           AutomationException
The specified format number.

Product Availability

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

Parameters:
index - The index (in)
Returns:
The formatNum
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMaxStorableClassID

int getMaxStorableClassID(int formatNum)
                          throws IOException,
                                 AutomationException
Returns the maximum storable feature class ID for the given format number.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
formatNum - The formatNum (in)
Returns:
The maxClassID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createGeometricNetworkEx

IGeometricNetwork createGeometricNetworkEx(String name,
                                           int networkType,
                                           boolean buildNormalizedTables,
                                           String configKeyword,
                                           int formatNum)
                                           throws IOException,
                                                  AutomationException
Creates a new GeometricNetwork with a configuration keyword in this FeatureDataset.

Remarks

The CreateGeometricNetworkEx method contains additional parameters to specify the Configuration keyword for creating networks in an ArcSDE Geodatabase and for specifying the storage format for the network. The configuartion keyword specifies how the logical network tables and indexes are stored in ArcSDE. The format outlines the storage of feature class IDs which participate in the geometric network. The storage format can be specified as either narrow or wide. Networks with a narrow format can only contain feature classes with class IDs less than 10,000 while networks with a wide format have no limitation on the feature class ID value. Unless you specifically require narrow networks, the format should always be set to a value of 1 for the wide storage format.
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)
configKeyword - The configKeyword (in)
formatNum - The formatNum (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.