com.esri.arcgis.geodatabase
Class INetworkCollectionProxy

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

public class INetworkCollectionProxy
extends com.esri.arcgis.interop.Dispatch
implements INetworkCollection, 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.

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
  INetworkCollectionProxy()
           
  INetworkCollectionProxy(Object obj)
           
protected INetworkCollectionProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 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.
 void removeListener(String iidStr, Object theListener)
           
 
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
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

INetworkCollectionProxy

public INetworkCollectionProxy()

INetworkCollectionProxy

public INetworkCollectionProxy(Object obj)
                        throws IOException
Throws:
IOException

INetworkCollectionProxy

protected INetworkCollectionProxy(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 com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

getGeometricNetworkCount

public 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

Specified by:
getGeometricNetworkCount in interface INetworkCollection
Returns:
The numNetworks
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGeometricNetwork

public 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.

Specified by:
getGeometricNetwork in interface INetworkCollection
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

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

Product Availability

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

Specified by:
getGeometricNetworkByName in interface INetworkCollection
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

public 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

Specified by:
createGeometricNetwork in interface INetworkCollection
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.