com.esri.arcgis.geodatabase
Class INetworkClassProxy

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

public class INetworkClassProxy
extends IFeatureClassProxy
implements INetworkClass, Serializable

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

Remarks

The FeatureType property of such feature classes will be one of esriFTSimpleJunction, esriDTSimpleEdge, esriFTComplexJunction, or esriFTComplexEdge.

You can QI (Query Interface) to any of these other interfaces on the FeatureClass object.

IDataset
IGeoDataset
ITable
INetworkClass
ISubtypes
IValidation

When To Use

Use the INetworkClass interface to get a reference to the geometric network which the network class (feature class) belongs to. You can also check to see if the network class has an Ancillary Role in the network, and the right to field mapping for the logical network.

The INetworkClass interface inherits from the IFeatureClass interface and the ITable interface.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E
 
Constructor Summary
  INetworkClassProxy()
           
  INetworkClassProxy(Object obj)
           
protected INetworkClassProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 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 readExternal(ObjectInput in)
           
 void removeListener(String iidStr, Object theListener)
           
 void writeExternal(ObjectOutput out)
           
 
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, 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, queryInterface, release, setNativeMode, setPropertyByName, toString, vtblInvoke
 
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
 

Constructor Detail

INetworkClassProxy

public INetworkClassProxy()

INetworkClassProxy

public INetworkClassProxy(Object obj)
                   throws IOException
Throws:
IOException

INetworkClassProxy

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

removeListener

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

getGeometricNetwork

public IGeometricNetwork getGeometricNetwork()
                                      throws IOException,
                                             AutomationException
The geometric network in which this class participates.

Remarks

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

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

getFieldToWeightMapping

public int getFieldToWeightMapping(int fieldIndex)
                            throws IOException,
                                   AutomationException
The specified field to Weight mapping for the logical network.

Product Availability

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

Specified by:
getFieldToWeightMapping in interface INetworkClass
Parameters:
fieldIndex - The fieldIndex (in)
Returns:
The weightID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNetworkAncillaryRole

public int getNetworkAncillaryRole()
                            throws IOException,
                                   AutomationException
The possible network ancillary roles of the contained Features.

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.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class IFeatureClassProxy
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class IFeatureClassProxy
Throws:
IOException
ClassNotFoundException