com.esri.arcgis.geodatabase
Class INetworkClassProxy

java.lang.Object
  extended bycom.esri.arcgis.interop.Dispatch
      extended bycom.esri.arcgis.geodatabase.IClassProxy
          extended bycom.esri.arcgis.geodatabase.IObjectClassProxy
              extended bycom.esri.arcgis.geodatabase.IFeatureClassProxy
                  extended bycom.esri.arcgis.geodatabase.INetworkClassProxy
All Implemented Interfaces:
java.io.Externalizable, IClass, IFeatureClass, INetworkClass, IObjectClass, java.io.Serializable

public class INetworkClassProxy
extends IFeatureClassProxy
implements INetworkClass, java.io.Serializable

Provides access to members that return information about geometric networks, field weighting and ancillary roles.

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
  INetworkClassProxy()
          For internal use only
  INetworkClassProxy(java.lang.Object obj)
           
protected INetworkClassProxy(java.lang.Object obj, java.lang.String iid)
           
  INetworkClassProxy(java.lang.String CLSID, java.lang.String host, AuthInfo authInfo)
           
protected INetworkClassProxy(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.
 int getFieldToWeightMapping(int fieldIndex)
          The specified field to Weight mapping for the logical network.
 IGeometricNetwork getGeometricNetwork()
          The geometric network in which this class participates.
 int getNetworkAncillaryRole()
          The possible network ancillary roles of the contained Features.
 void removeListener(java.lang.String iidStr, java.lang.Object theListener)
          Removes a Java object as a listener to events generated by a COM object.
 
Methods inherited from class com.esri.arcgis.geodatabase.IFeatureClassProxy
createFeature, createFeatureBuffer, featureCount, getAreaField, getFeature, getFeatureClassID, getFeatureDataset, getFeatures, getFeatureType, getLengthField, getShapeFieldName, getShapeType, IFeatureClass_insert, IFeatureClass_update, search, select
 
Methods inherited from class com.esri.arcgis.geodatabase.IObjectClassProxy
getAliasName, getObjectClassID, getRelationshipClasses
 
Methods inherited from class com.esri.arcgis.geodatabase.IClassProxy
addField, addIndex, deleteField, deleteIndex, findField, getCLSID, getEXTCLSID, getExtension, getExtensionProperties, getFields, getIndexes, getOIDFieldName, isHasOID
 
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
 
Methods inherited from interface com.esri.arcgis.geodatabase.IFeatureClass
createFeature, createFeatureBuffer, featureCount, getAreaField, getFeature, getFeatureClassID, getFeatureDataset, getFeatures, getFeatureType, getLengthField, getShapeFieldName, getShapeType, IFeatureClass_insert, IFeatureClass_update, search, select
 
Methods inherited from interface com.esri.arcgis.geodatabase.IObjectClass
getAliasName, getObjectClassID, getRelationshipClasses
 
Methods inherited from interface com.esri.arcgis.geodatabase.IClass
addField, addIndex, deleteField, deleteIndex, findField, getCLSID, getEXTCLSID, getExtension, getExtensionProperties, getFields, getIndexes, getOIDFieldName, isHasOID
 

Field Detail

targetClass

public static final java.lang.Class targetClass
Constructor Detail

INetworkClassProxy

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

INetworkClassProxy

public INetworkClassProxy()
For internal use only


INetworkClassProxy

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

INetworkClassProxy

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

INetworkClassProxy

protected INetworkClassProxy(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 IFeatureClassProxy
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 IFeatureClassProxy
Throws:
java.io.IOException

getGeometricNetwork

public IGeometricNetwork getGeometricNetwork()
                                      throws java.io.IOException,
                                             AutomationException
Description copied from interface: INetworkClass
The geometric network in which this class participates.

Supported Platforms

Windows, Solaris, Linux

Remarks

The GeomtricNetwork property returns an IGeometricNetwork interface to the geometric network in which the network feature class participates.

Specified by:
getGeometricNetwork in interface INetworkClass
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.
See Also:
IGeometricNetwork, INetwork

getFieldToWeightMapping

public int getFieldToWeightMapping(int fieldIndex)
                            throws java.io.IOException,
                                   AutomationException
Description copied from interface: INetworkClass
The specified field to Weight mapping for the logical network.

Supported Platforms

Windows, Solaris, Linux

Remarks

The FieldToWeightMapping property will return the index of the network weight to which a field in the network class is mapped in the logical network. You can then use the INetSchema::Weight property to return the INetWeight interface on that particular network weight. If the field has no weight associated with it, FieldToWeightMapping returns a -1.

Specified by:
getFieldToWeightMapping in interface INetworkClass
Parameters:
fieldIndex - The fieldIndex (in)
Returns:
The weightID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
IGeometricNetwork, INetwork, INetWeight

getNetworkAncillaryRole

public int getNetworkAncillaryRole()
                            throws java.io.IOException,
                                   AutomationException
Description copied from interface: INetworkClass
The possible network ancillary roles of the contained Features.

Supported Platforms

Windows, Solaris, Linux

Remarks

The NetworkAncillaryRole property will return the esriNetworkAncillaryRole enumeration which indicates if the junction class has a network ancillary role. Since junctions in a geometric network can act as a source, a sink or neither when calculating flow direction, this property will indicate whether or not the features in the class can be sources or sinks. If the class is a simple edge or complex edge network class, the ancillary role will always be returned as esriNCARNone since only junctions may have ancillary roles.

Specified by:
getNetworkAncillaryRole in interface INetworkClass
Returns:
A com.esri.arcgis.geodatabase.esriNetworkClassAncillaryRole constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
IGeometricNetwork, INetwork