com.esri.arcgis.geodatabase
Class INetworkCollection2Proxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.geodatabase.INetworkCollectionProxy
          extended by com.esri.arcgis.geodatabase.INetworkCollection2Proxy
All Implemented Interfaces:
INetworkCollection, INetworkCollection2, Externalizable, Serializable

public class INetworkCollection2Proxy
extends INetworkCollectionProxy
implements INetworkCollection2, 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.

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  INetworkCollection2Proxy()
           
  INetworkCollection2Proxy(Object obj)
           
protected INetworkCollection2Proxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 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.
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.geodatabase.INetworkCollectionProxy
createGeometricNetwork, getGeometricNetwork, getGeometricNetworkByName, getGeometricNetworkCount
 
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.geodatabase.INetworkCollection
createGeometricNetwork, getGeometricNetwork, getGeometricNetworkByName, getGeometricNetworkCount
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

INetworkCollection2Proxy

public INetworkCollection2Proxy()

INetworkCollection2Proxy

public INetworkCollection2Proxy(Object obj)
                         throws IOException
Throws:
IOException

INetworkCollection2Proxy

protected INetworkCollection2Proxy(Object obj,
                                   String iid)
                            throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class INetworkCollectionProxy
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class INetworkCollectionProxy
Throws:
IOException

getFormatNumberCount

public 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

Specified by:
getFormatNumberCount in interface INetworkCollection2
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFormatNumber

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

Product Availability

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

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

getMaxStorableClassID

public 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

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

createGeometricNetworkEx

public 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

Specified by:
createGeometricNetworkEx in interface INetworkCollection2
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.