com.esri.arcgis.geodatabase
Class INetworkFeatureProxy

java.lang.Object
  extended bycom.esri.arcgis.interop.Dispatch
      extended bycom.esri.arcgis.geodatabase.INetworkFeatureProxy
All Implemented Interfaces:
java.io.Externalizable, INetworkFeature, java.io.Serializable

public class INetworkFeatureProxy
extends Dispatch
implements INetworkFeature, java.io.Serializable

Provides access to members that are common to all features in a GeometricNetwork.

Product Availability

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

See Also:
Serialized Form

Field Summary
static java.lang.Class targetClass
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF
 
Constructor Summary
  INetworkFeatureProxy()
          For internal use only
  INetworkFeatureProxy(java.lang.Object obj)
           
protected INetworkFeatureProxy(java.lang.Object obj, java.lang.String iid)
           
  INetworkFeatureProxy(java.lang.String CLSID, java.lang.String host, AuthInfo authInfo)
           
protected INetworkFeatureProxy(java.lang.String CLSID, java.lang.String iid, java.lang.String host, AuthInfo authInfo)
           
 
Method Summary
 void addListener(java.lang.String iidStr, java.lang.Object theListener, java.lang.Object theSource)
          Adds a Java object to be a listener for a specific kind of event generated by the COM object.
 void connect()
          Connect the Feature to the geometrically coincident NetworkFeature.
 IEnumNetEID createNetworkElements()
          Create the necessary NetworkElements in the associated Logical Network.
 void disconnect()
          Disconnect the Feature from all connected NetworkFeatures.
 IGeometricNetwork getGeometricNetwork()
          The containing GeometricNetwork.
 boolean isEnabled()
          Indicates whether the NetworkFeature is open or not (i.e., closed).
 void onDisconnect()
          Preparation for disconnecting the NetworkFeature.
 void removeListener(java.lang.String iidStr, java.lang.Object theListener)
          Removes a Java object as a listener to events generated by a COM object.
 void setEnabled(boolean isEnabled)
          Indicates whether the NetworkFeature is open or not (i.e., closed).
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, hashCode, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, queryInterface, readExternal, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

targetClass

public static final java.lang.Class targetClass
Constructor Detail

INetworkFeatureProxy

public INetworkFeatureProxy(java.lang.String CLSID,
                            java.lang.String host,
                            AuthInfo authInfo)
                     throws java.net.UnknownHostException,
                            java.io.IOException

INetworkFeatureProxy

public INetworkFeatureProxy()
For internal use only


INetworkFeatureProxy

public INetworkFeatureProxy(java.lang.Object obj)
                     throws java.io.IOException

INetworkFeatureProxy

protected INetworkFeatureProxy(java.lang.Object obj,
                               java.lang.String iid)
                        throws java.io.IOException

INetworkFeatureProxy

protected INetworkFeatureProxy(java.lang.String CLSID,
                               java.lang.String iid,
                               java.lang.String host,
                               AuthInfo authInfo)
                        throws java.io.IOException
Method Detail

addListener

public void addListener(java.lang.String iidStr,
                        java.lang.Object theListener,
                        java.lang.Object theSource)
                 throws java.io.IOException
Description copied from class: Dispatch
Adds a Java object to be a listener for a specific kind of event generated by the COM object. when you wish to invoke method on the COM object using IDispatch (not using custom marshalling).

Overrides:
addListener in class Dispatch
Parameters:
iidStr - the ID of the outgoing interface, implemented by the listener
theListener - the object to be informed of the events
theSource - the proxy class that represents the COM class that is the source of the events
Throws:
java.io.IOException

removeListener

public void removeListener(java.lang.String iidStr,
                           java.lang.Object theListener)
                    throws java.io.IOException
Description copied from class: Dispatch
Removes a Java object as a listener to events generated by a COM object. when you wish to invoke method on the COM object using IDispatch (not using custom marshalling).

Overrides:
removeListener in class Dispatch
Parameters:
iidStr - the ID of the outgoing interface, implemented by the listener
theListener - the object that no longer wishes to be informed of the events
Throws:
java.io.IOException

getGeometricNetwork

public IGeometricNetwork getGeometricNetwork()
                                      throws java.io.IOException,
                                             AutomationException
Description copied from interface: INetworkFeature
The containing GeometricNetwork.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getGeometricNetwork in interface INetworkFeature
Returns:
A reference to a com.esri.arcgis.geodatabase.IGeometricNetwork
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isEnabled

public boolean isEnabled()
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: INetworkFeature
Indicates whether the NetworkFeature is open or not (i.e., closed).

Supported Platforms

Windows, Solaris, Linux

Remarks

The Enabled property provides access the enabled state of network features. The enabled state of network feature governs whether the feature is enabled or disabled for tracing.  By default, all network features are enabled when the network is built or when first created.

All edits to features that participate in a Geometric Network must be performed within an edit session and bracketed within an edit operation.

Specified by:
isEnabled in interface INetworkFeature
Returns:
The isEnabled
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

setEnabled

public void setEnabled(boolean isEnabled)
                throws java.io.IOException,
                       AutomationException
Description copied from interface: INetworkFeature
Indicates whether the NetworkFeature is open or not (i.e., closed).

Supported Platforms

Windows, Solaris, Linux

Specified by:
setEnabled in interface INetworkFeature
Parameters:
isEnabled - The isEnabled (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

connect

public void connect()
             throws java.io.IOException,
                    AutomationException
Description copied from interface: INetworkFeature
Connect the Feature to the geometrically coincident NetworkFeature.

Supported Platforms

Windows, Solaris, Linux

Remarks

All edits to features that participate in a Geometric Network must be performed within an edit session and bracketed within an edit operation.

Looping through a collection or enumeration of junctions and calling Connect on each one to establish connectivity with a complex edge feature is an expensive operation.  Calling IComplexEdgeFeature::ConnectatIntermediateVertices once on the complex edge feature will result in increased performance with the same resultant connectivity.

Specified by:
connect in interface INetworkFeature
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

disconnect

public void disconnect()
                throws java.io.IOException,
                       AutomationException
Description copied from interface: INetworkFeature
Disconnect the Feature from all connected NetworkFeatures.

Supported Platforms

Windows, Solaris, Linux

Remarks

All edits to features that participate in a Geometric Network must be performed within an edit session and bracketed within an edit operation.

Specified by:
disconnect in interface INetworkFeature
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

onDisconnect

public void onDisconnect()
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: INetworkFeature
Preparation for disconnecting the NetworkFeature.

Supported Platforms

Windows, Solaris, Linux

Remarks

OnDisconnect is not currently implemented.

Specified by:
onDisconnect in interface INetworkFeature
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createNetworkElements

public IEnumNetEID createNetworkElements()
                                  throws java.io.IOException,
                                         AutomationException
Description copied from interface: INetworkFeature
Create the necessary NetworkElements in the associated Logical Network.

Supported Platforms

Windows, Solaris, Linux

Remarks

Every network feature in a geometric network has a corresponding network element in the logical network. CreateNetworkElements is called by the geometric network when network features are created.  It is not neccessary for developers to call this method after creating new network features.

Specified by:
createNetworkElements in interface INetworkFeature
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumNetEID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.