com.esri.arcgis.geodatabase
Class GeometricNetwork

java.lang.Object
  extended by com.esri.arcgis.geodatabase.GeometricNetwork
All Implemented Interfaces:
IDataset, IDatasetEdit, IFeatureClassContainer, IGeoDataset, IGeometricNetwork, IGeometricNetworkConnectivity, IGeometricNetworkConnectivity2, IGeometricNetworkErrorDetection, IGeometricNetworkReconcileProperties, IGraph, IMetadata, IMetadataEdit, INativeTypeInfo, ISchemaLock, com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, java.io.Serializable

public class GeometricNetwork
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IDataset, IDatasetEdit, IGeoDataset, INativeTypeInfo, ISchemaLock, IFeatureClassContainer, IGeometricNetwork, IGeometricNetworkErrorDetection, IGeometricNetworkConnectivity2, IGeometricNetworkReconcileProperties, IMetadata, IMetadataEdit, ISupportErrorInfo

COM Class 'GeometricNetwork'. Generated 3/19/2015 1:20:43 PM from 'C:\ArcGIS\COM\esriGeoDatabase.olb'

Description 'Esri Geometric Network object.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.geodatabase.IDataset
IID, IID2d04c042_7766_11d0_b77d_00805f7ced21, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IDatasetEdit
IID, IID448c5d21_9746_11d1_89e2_006097aff44e, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.INativeTypeInfo
IID, IID906db24a_f0ad_4ca5_871b_5466e54fab80, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.ISchemaLock
IID, IIDdca648e5_0fbb_11d3_80a5_00c04f686238, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IFeatureClassContainer
IID, IID3b439634_cfc3_11d1_aead_0000f80372b4, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IGeometricNetwork
IID, IIDdbff01c2_5579_11d1_ae55_0000f80372b4, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IGraph
IID436a48bc_56f6_11d1_ae55_0000f80372b4
 
Fields inherited from interface com.esri.arcgis.geodatabase.IGeometricNetworkErrorDetection
IID, IID8bf5c9a4_6d40_11d4_a0b4_00c04f6bdd84, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IGeometricNetworkConnectivity2
IID, IID3942bf39_efe9_4094_9089_bc41b459b384, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IGeometricNetworkConnectivity
IID3fc4db86_64b4_11d4_a0ad_00c04f6bdd84
 
Fields inherited from interface com.esri.arcgis.geodatabase.IGeometricNetworkReconcileProperties
IID, IIDe775f490_ddbf_4710_965c_070bccd1cec4, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IMetadata
IID, IID5de04a82_24e4_11d3_a641_0008c7d3ae50, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IMetadataEdit
IID, IID97fdb978_62a4_49c5_8252_b07837b33ee9, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
 
Constructor Summary
GeometricNetwork(java.lang.Object obj)
          Construct a GeometricNetwork using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 void add(IFeature newFeature)
          Adds the preexisting Feature to the graph.
 void addFeatureClass(IFeatureClass featureClass, java.lang.String enabledFieldName, int role, java.lang.String ancillaryRoleFieldName)
          Add the FeatureClass to this graph.
 void addJunctionWithSubsumption(ISimpleJunctionFeature junction, int junctionEID, ISimpleJunctionFeature subsumedJunction)
          Add a new junction feature to the network by replacing existing junction.
 void addRule(IConnectivityRule rule)
          Adds the constraint to the set of connectivity rules.
 boolean canCopy()
          True if this dataset can be copied.
 boolean canDelete()
          True if this dataset can be deleted.
 boolean canRename()
          True if this dataset can be renamed.
 void changeSchemaLock(int schemaLock)
          Changes a schema lock.
 void checkAndRepairConnectivity(boolean checkOnly, java.lang.String logFilePath, ISet[] errorSelectionSets, boolean[] hasInternalInconsistencies, IRepairConnectivityProgress repairConnectivityProgress)
          Checks and optionally repairs connectivity.
 IDataset copy(java.lang.String copyName, IWorkspace copyWorkspace)
          Copies this dataset to a new dataset with the specified name.
 void createErrorTable(java.lang.String name, ITable[] errorTable)
          Creates a non-versioned table that can be used to persist error information.
 ISimpleJunctionFeature createOrphanFeature(IPoint location, int[] orphanEID)
          Create an orphan JunctionFeature.
 ISet createSelectionSetFromErrorTable()
          Returns a set of selection sets of the features in the geometric network Error Table.
 void delete()
          Deletes this dataset.
 void deleteNetworkElements(ISet selectionSets)
          Deletes the network elements associated with the specified network features.
 void deleteRule(IConnectivityRule rule)
          Removes the rule from the set of rules.
 void deleteSet(ISet featuresToDelete)
          Removes the set of Feature from the graph.
 void detectNetworkErrors(int errorType, IEnvelope areaOfInterest, ISet selectionSets, ISet[] problemSelectionSets)
          The features in the geometric network with connectivity problems.
 boolean equals(java.lang.Object o)
          Compare this object with another
 IFeatureClass esri_getClass(int classIndex)
          The FeatureClass associated with the specified index value.
 void establishFlowDirection()
          Establish the flow direction in the LogicalNetwork.
 java.lang.String getBrowseName()
          The browse name of the dataset.
 java.lang.String getCategory()
          The category of the dataset.
 IFeatureClass getClassByID(int iD)
          The FeatureClass with the specified ID.
 IFeatureClass getClassByName(java.lang.String name)
          The FeatureClass with the specified name.
 int getClassCount()
          The number of FeatureClasses in this container.
 IEnumFeatureClass getClasses()
          An enumerator over the FeatureClasses.
 IEnumFeatureClass getClassesByNetworkAncillaryRole(int role)
          The FeatureClasses with the specified ancillary role.
 IEnumFeatureClass getClassesByType(int type)
          The FeatureClasses containing Features of the specified type.
 void getCurrentSchemaLocks(IEnumSchemaLockInfo[] schemaLockInfo)
          The list of current locks.
 IDisplayFeedback getDisplayFeedback(IFeature feature, ISet features, IPoint point)
          The DisplayFeedback.
 int getEdgeElement(IPoint location)
          The EdgeElement EID at the specified location.
 ITable getErrorTable()
          The error table currently associated with the geometric network.
 IEnvelope getExtent()
          The extent of the GeoDataset.
 IFeatureDataset getFeatureDataset()
          The FeatureDataset associated with the graph.
 IName getFullName()
          The associated name object.
 IGeometry getGeometryForEdgeEID(int edgeEID)
          The geometry of the EdgeElement.
 IGeometry getGeometryForJunctionEID(int junctionEID)
          The geometry that corresponds to the JunctionElement (a point).
 IInvalidArea getInvalidArea()
          The area to be drawn.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int getJunctionElement(IPoint location)
          The JunctionElement EID at the specified location.
 IPropertySet getMetadata()
          The PropertySet containing metadata.
 java.lang.String getName()
          The name of the Dataset.
 INativeType getNativeType()
          The native type.
 INetwork getNetwork()
          The associated logical network.
 INetworkFeature getNetworkFeature(INetElementDescription networkElement)
          The NetworkFeature that corresponds to the NetworkElement.
 int getNetworkType()
          The type of associated logical network.
 IFeatureClass getOrphanJunctionFeatureClass()
          The FeatureClass containing the OrphanJunctionFeatures.
 IPropertySet getPropertySet()
          The set of properties for the dataset.
 IEnumRule getRules()
          All the connectivity rules associated with the network.
 IEnumRule getRulesByClassAndSubtype(int classID, int subtypeCode)
          The connectivity rules associated with the class and subtype.
 ISpatialReference getSpatialReference()
          The spatial reference of the GeoDataset.
 IEnumDataset getSubsets()
          Datasets contained within this dataset.
 int getType()
          The type of the Dataset.
 IWorkspace getWorkspace()
          The workspace containing this dataset.
 int hashCode()
          the hashcode for this object
 void init(IFeatureDataset dataset, int graphID, java.lang.String graphName, boolean buildNormalizedTables, boolean createGraph)
          Initializes the graph.
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 boolean isBeingEdited()
          True if the dataset is being edited.
 boolean isCanEditMetadata()
          Indicates if metadata can be edited.
 boolean isReduceNetworkConflicts()
          Indicates if the reconcile plan for the network reduces network conflicts.
 boolean isValidFlowDirection()
          Indicates whether the current flow directions are valid.
 boolean isVertexBasedStretching()
          The stretching model to nearest vertex (true) or junction (false) based stretching.
 IEnumFeature merge(IEnumFeature mergingFeatures)
          Merges the Features together, returning the newly created Feature.
 void rebuildConnectivity(IEnvelope incrementalRebuildArea)
          Incrementally rebuilds connectivity for features within and intersecting the specified envelope.
 void rebuildConnectivity2(IEnvelope incrementalRebuildArea)
          Incrementally rebuilds connectivity for features within and intersecting the specified envelope.
 void release()
          Release a GeometricNetwork.
 void rename(java.lang.String name)
          Renames this Dataset.
 IEnumFeature searchForNetworkFeature(IPoint location, int type)
          The NetworkFeatures found at the point.
 void setBrowseName(java.lang.String name)
          The browse name of the dataset.
 void setErrorTable(ITable errorTable)
          The error table currently associated with the geometric network.
 void setInvalidAreaByRef(IInvalidArea invalidArea)
          The area to be drawn.
 void setMetadata(IPropertySet propertySet)
          The PropertySet containing metadata.
 void setReduceNetworkConflicts(boolean reduceNetworkConflicts)
          Indicates if the reconcile plan for the network reduces network conflicts.
 void setVertexBasedStretching(boolean vertexBased)
          The stretching model to nearest vertex (true) or junction (false) based stretching.
 void spliceSimpleJunction(ISimpleJunctionFeature junction, int junctionEID, IGeometry geometry, boolean forceConnectivity)
          Create network connectivity between the simple junction and any intersecting network feature.
 ISet split(IEdgeFeature splittingEdge, IGeometry point)
          Split the feature.
 void synchronize(int action, int interval)
          Updates metadata with the current properties; may create metadata if it doesn't already exist.
 void transformSet(ISet features, int type, IAffineTransformation2D tranformation)
          Repositions all specified NetworkFeatures and any topologically connected NetworkFeatures.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometricNetwork

public GeometricNetwork(java.lang.Object obj)
                 throws java.io.IOException
Construct a GeometricNetwork using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to GeometricNetwork.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
GeometricNetwork o = (GeometricNetwork)obj; // will not work

GeometricNetwork o = new GeometricNetwork(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
java.io.IOException - if there are interop problems GeometricNetwork theGeometricNetwork = (GeometricNetwork) obj;
Method Detail

equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a GeometricNetwork.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getName

public java.lang.String getName()
                         throws java.io.IOException,
                                AutomationException
The name of the Dataset.

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

getFullName

public IName getFullName()
                  throws java.io.IOException,
                         AutomationException
The associated name object.

Specified by:
getFullName in interface IDataset
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getBrowseName

public java.lang.String getBrowseName()
                               throws java.io.IOException,
                                      AutomationException
The browse name of the dataset.

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

setBrowseName

public void setBrowseName(java.lang.String name)
                   throws java.io.IOException,
                          AutomationException
The browse name of the dataset.

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

getType

public int getType()
            throws java.io.IOException,
                   AutomationException
The type of the Dataset.

Specified by:
getType in interface IDataset
Returns:
A com.esri.arcgis.geodatabase.esriDatasetType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCategory

public java.lang.String getCategory()
                             throws java.io.IOException,
                                    AutomationException
The category of the dataset.

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

getSubsets

public IEnumDataset getSubsets()
                        throws java.io.IOException,
                               AutomationException
Datasets contained within this dataset.

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

getWorkspace

public IWorkspace getWorkspace()
                        throws java.io.IOException,
                               AutomationException
The workspace containing this dataset.

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

getPropertySet

public IPropertySet getPropertySet()
                            throws java.io.IOException,
                                   AutomationException
The set of properties for the dataset.

Specified by:
getPropertySet in interface IDataset
Returns:
A reference to a com.esri.arcgis.system.IPropertySet
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

canCopy

public boolean canCopy()
                throws java.io.IOException,
                       AutomationException
True if this dataset can be copied.

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

copy

public IDataset copy(java.lang.String copyName,
                     IWorkspace copyWorkspace)
              throws java.io.IOException,
                     AutomationException
Copies this dataset to a new dataset with the specified name.

Specified by:
copy in interface IDataset
Parameters:
copyName - The copyName (in)
copyWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IDataset
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

canDelete

public boolean canDelete()
                  throws java.io.IOException,
                         AutomationException
True if this dataset can be deleted.

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

delete

public void delete()
            throws java.io.IOException,
                   AutomationException
Deletes this dataset.

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

canRename

public boolean canRename()
                  throws java.io.IOException,
                         AutomationException
True if this dataset can be renamed.

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

rename

public void rename(java.lang.String name)
            throws java.io.IOException,
                   AutomationException
Renames this Dataset.

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

isBeingEdited

public boolean isBeingEdited()
                      throws java.io.IOException,
                             AutomationException
True if the dataset is being edited.

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

getSpatialReference

public ISpatialReference getSpatialReference()
                                      throws java.io.IOException,
                                             AutomationException
The spatial reference of the GeoDataset.

Remarks

This property is read only. For layers, when the first layer is added to ArcMap, its spatial reference is read by this property, and the map is set to this spatial reference.

Instances of the esriCarto.GroupLayer class will return null for this property, as a group layer can contain multiple datasets with different spatial references.

Modifications to a spatial reference returned by this property will not be persisted. To modify the spatial reference of a dataset, the IGeoDatasetSchemaEdit and IGeoDatasetSchemaEdit2 interfaces should be used.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getSpatialReference in interface IGeoDataset
Returns:
A reference to a com.esri.arcgis.geometry.ISpatialReference
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExtent

public IEnvelope getExtent()
                    throws java.io.IOException,
                           AutomationException
The extent of the GeoDataset.

Remarks

The IGeoDataset::Extent property returns an envelope representing the maximum extent of data which has been stored in the dataset.

Consider the following scenario. A new feature class has features added to it. The IGeoDataset::Extent is then requested and an envelope is returned. The extents of the envelope returned are represented by the red box in the image below.

The red box represents the IGeoDataset extent

If a portion of the features were then deleted and the extent is again requested an envelope with the exact same extents as during the first request would be returned (see image below). This is because the deletion of features does not shrink the extent. However all additions of features outside the red box would increase the envelope returned to encompass the newly added features.

The red box represents the IGeoDataset extent after some of the features have been deleted

If you would like to update the IGeoDataset::Extent property to reflect the current features in your dataset please see IFeatureClassManage::UpdateExtent (also see IFeatureClassLoad). In the image below the extent has been updated and a new envelope is being returned.

The red box represents the IGeoDataset extent after it has been updated

ESRI's GroupLayer implements this property differently from most other layer coclasses. When you instantiate a new GroupLayer, this property will return a valid envelope with zero height and width. With most other newly instantiated layers (for example FeatureLayer, RasterLayer, TinLayer), this property initally returns Nothing.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getExtent in interface IGeoDataset
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNativeType

public INativeType getNativeType()
                          throws java.io.IOException,
                                 AutomationException
The native type.

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

changeSchemaLock

public void changeSchemaLock(int schemaLock)
                      throws java.io.IOException,
                             AutomationException
Changes a schema lock.

Specified by:
changeSchemaLock in interface ISchemaLock
Parameters:
schemaLock - A com.esri.arcgis.geodatabase.esriSchemaLock constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCurrentSchemaLocks

public void getCurrentSchemaLocks(IEnumSchemaLockInfo[] schemaLockInfo)
                           throws java.io.IOException,
                                  AutomationException
The list of current locks.

Specified by:
getCurrentSchemaLocks in interface ISchemaLock
Parameters:
schemaLockInfo - A reference to a com.esri.arcgis.geodatabase.IEnumSchemaLockInfo (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

esri_getClass

public IFeatureClass esri_getClass(int classIndex)
                            throws java.io.IOException,
                                   AutomationException
The FeatureClass associated with the specified index value.

Specified by:
esri_getClass in interface IFeatureClassContainer
Parameters:
classIndex - The classIndex (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClassByID

public IFeatureClass getClassByID(int iD)
                           throws java.io.IOException,
                                  AutomationException
The FeatureClass with the specified ID.

Specified by:
getClassByID in interface IFeatureClassContainer
Parameters:
iD - The iD (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClassByName

public IFeatureClass getClassByName(java.lang.String name)
                             throws java.io.IOException,
                                    AutomationException
The FeatureClass with the specified name.

Specified by:
getClassByName in interface IFeatureClassContainer
Parameters:
name - The name (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClassCount

public int getClassCount()
                  throws java.io.IOException,
                         AutomationException
The number of FeatureClasses in this container.

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

getClasses

public IEnumFeatureClass getClasses()
                             throws java.io.IOException,
                                    AutomationException
An enumerator over the FeatureClasses.

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

getClassesByNetworkAncillaryRole

public IEnumFeatureClass getClassesByNetworkAncillaryRole(int role)
                                                   throws java.io.IOException,
                                                          AutomationException
The FeatureClasses with the specified ancillary role.

Specified by:
getClassesByNetworkAncillaryRole in interface IGeometricNetwork
Parameters:
role - A com.esri.arcgis.geodatabase.esriNetworkClassAncillaryRole constant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumFeatureClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

establishFlowDirection

public void establishFlowDirection()
                            throws java.io.IOException,
                                   AutomationException
Establish the flow direction in the LogicalNetwork.

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

isValidFlowDirection

public boolean isValidFlowDirection()
                             throws java.io.IOException,
                                    AutomationException
Indicates whether the current flow directions are valid.

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

getClassesByType

public IEnumFeatureClass getClassesByType(int type)
                                   throws java.io.IOException,
                                          AutomationException
The FeatureClasses containing Features of the specified type.

Specified by:
getClassesByType in interface IGeometricNetwork
Parameters:
type - A com.esri.arcgis.geodatabase.esriFeatureType constant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumFeatureClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createOrphanFeature

public ISimpleJunctionFeature createOrphanFeature(IPoint location,
                                                  int[] orphanEID)
                                           throws java.io.IOException,
                                                  AutomationException
Create an orphan JunctionFeature.

Specified by:
createOrphanFeature in interface IGeometricNetwork
Parameters:
location - A reference to a com.esri.arcgis.geometry.IPoint (in)
orphanEID - The orphanEID (out: use single element array)
Returns:
A reference to a com.esri.arcgis.geodatabase.ISimpleJunctionFeature
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getEdgeElement

public int getEdgeElement(IPoint location)
                   throws java.io.IOException,
                          AutomationException
The EdgeElement EID at the specified location.

Specified by:
getEdgeElement in interface IGeometricNetwork
Parameters:
location - A reference to a com.esri.arcgis.geometry.IPoint (in)
Returns:
The edgeEID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getInvalidArea

public IInvalidArea getInvalidArea()
                            throws java.io.IOException,
                                   AutomationException
The area to be drawn.

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

setInvalidAreaByRef

public void setInvalidAreaByRef(IInvalidArea invalidArea)
                         throws java.io.IOException,
                                AutomationException
The area to be drawn.

Specified by:
setInvalidAreaByRef in interface IGeometricNetwork
Parameters:
invalidArea - A reference to a com.esri.arcgis.geodatabase.IInvalidArea (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getJunctionElement

public int getJunctionElement(IPoint location)
                       throws java.io.IOException,
                              AutomationException
The JunctionElement EID at the specified location.

Specified by:
getJunctionElement in interface IGeometricNetwork
Parameters:
location - A reference to a com.esri.arcgis.geometry.IPoint (in)
Returns:
The junctionEID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNetwork

public INetwork getNetwork()
                    throws java.io.IOException,
                           AutomationException
The associated logical network.

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

getNetworkType

public int getNetworkType()
                   throws java.io.IOException,
                          AutomationException
The type of associated logical network.

Specified by:
getNetworkType in interface IGeometricNetwork
Returns:
A com.esri.arcgis.geodatabase.esriNetworkType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getOrphanJunctionFeatureClass

public IFeatureClass getOrphanJunctionFeatureClass()
                                            throws java.io.IOException,
                                                   AutomationException
The FeatureClass containing the OrphanJunctionFeatures.

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

addRule

public void addRule(IConnectivityRule rule)
             throws java.io.IOException,
                    AutomationException
Adds the constraint to the set of connectivity rules.

Specified by:
addRule in interface IGeometricNetwork
Parameters:
rule - A reference to a com.esri.arcgis.geodatabase.IConnectivityRule (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteRule

public void deleteRule(IConnectivityRule rule)
                throws java.io.IOException,
                       AutomationException
Removes the rule from the set of rules.

Specified by:
deleteRule in interface IGeometricNetwork
Parameters:
rule - A reference to a com.esri.arcgis.geodatabase.IConnectivityRule (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getRules

public IEnumRule getRules()
                   throws java.io.IOException,
                          AutomationException
All the connectivity rules associated with the network.

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

getRulesByClassAndSubtype

public IEnumRule getRulesByClassAndSubtype(int classID,
                                           int subtypeCode)
                                    throws java.io.IOException,
                                           AutomationException
The connectivity rules associated with the class and subtype.

Specified by:
getRulesByClassAndSubtype in interface IGeometricNetwork
Parameters:
classID - The classID (in)
subtypeCode - The subtypeCode (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumRule
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

searchForNetworkFeature

public IEnumFeature searchForNetworkFeature(IPoint location,
                                            int type)
                                     throws java.io.IOException,
                                            AutomationException
The NetworkFeatures found at the point.

Specified by:
searchForNetworkFeature in interface IGeometricNetwork
Parameters:
location - A reference to a com.esri.arcgis.geometry.IPoint (in)
type - A com.esri.arcgis.geodatabase.esriFeatureType constant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumFeature
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGeometryForEdgeEID

public IGeometry getGeometryForEdgeEID(int edgeEID)
                                throws java.io.IOException,
                                       AutomationException
The geometry of the EdgeElement.

Specified by:
getGeometryForEdgeEID in interface IGeometricNetwork
Parameters:
edgeEID - The edgeEID (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGeometryForJunctionEID

public IGeometry getGeometryForJunctionEID(int junctionEID)
                                    throws java.io.IOException,
                                           AutomationException
The geometry that corresponds to the JunctionElement (a point).

Specified by:
getGeometryForJunctionEID in interface IGeometricNetwork
Parameters:
junctionEID - The junctionEID (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNetworkFeature

public INetworkFeature getNetworkFeature(INetElementDescription networkElement)
                                  throws java.io.IOException,
                                         AutomationException
The NetworkFeature that corresponds to the NetworkElement.

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

spliceSimpleJunction

public void spliceSimpleJunction(ISimpleJunctionFeature junction,
                                 int junctionEID,
                                 IGeometry geometry,
                                 boolean forceConnectivity)
                          throws java.io.IOException,
                                 AutomationException
Create network connectivity between the simple junction and any intersecting network feature. For internal use only.

Specified by:
spliceSimpleJunction in interface IGeometricNetwork
Parameters:
junction - A reference to a com.esri.arcgis.geodatabase.ISimpleJunctionFeature (in)
junctionEID - The junctionEID (in)
geometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)
forceConnectivity - The forceConnectivity (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addJunctionWithSubsumption

public void addJunctionWithSubsumption(ISimpleJunctionFeature junction,
                                       int junctionEID,
                                       ISimpleJunctionFeature subsumedJunction)
                                throws java.io.IOException,
                                       AutomationException
Add a new junction feature to the network by replacing existing junction.

Specified by:
addJunctionWithSubsumption in interface IGeometricNetwork
Parameters:
junction - A reference to a com.esri.arcgis.geodatabase.ISimpleJunctionFeature (in)
junctionEID - The junctionEID (in)
subsumedJunction - A reference to a com.esri.arcgis.geodatabase.ISimpleJunctionFeature (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public void add(IFeature newFeature)
         throws java.io.IOException,
                AutomationException
Adds the preexisting Feature to the graph.

Specified by:
add in interface IGraph
Parameters:
newFeature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addFeatureClass

public void addFeatureClass(IFeatureClass featureClass,
                            java.lang.String enabledFieldName,
                            int role,
                            java.lang.String ancillaryRoleFieldName)
                     throws java.io.IOException,
                            AutomationException
Add the FeatureClass to this graph.

Specified by:
addFeatureClass in interface IGraph
Parameters:
featureClass - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
enabledFieldName - The enabledFieldName (in)
role - A com.esri.arcgis.geodatabase.esriNetworkClassAncillaryRole constant (in)
ancillaryRoleFieldName - The ancillaryRoleFieldName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteSet

public void deleteSet(ISet featuresToDelete)
               throws java.io.IOException,
                      AutomationException
Removes the set of Feature from the graph.

Specified by:
deleteSet in interface IGraph
Parameters:
featuresToDelete - A reference to a com.esri.arcgis.system.ISet (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFeatureDataset

public IFeatureDataset getFeatureDataset()
                                  throws java.io.IOException,
                                         AutomationException
The FeatureDataset associated with the graph.

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

getDisplayFeedback

public IDisplayFeedback getDisplayFeedback(IFeature feature,
                                           ISet features,
                                           IPoint point)
                                    throws java.io.IOException,
                                           AutomationException
The DisplayFeedback.

Specified by:
getDisplayFeedback in interface IGraph
Parameters:
feature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
features - A reference to a com.esri.arcgis.system.ISet (in)
point - A reference to a com.esri.arcgis.geometry.IPoint (in)
Returns:
A reference to a com.esri.arcgis.display.IDisplayFeedback
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

init

public void init(IFeatureDataset dataset,
                 int graphID,
                 java.lang.String graphName,
                 boolean buildNormalizedTables,
                 boolean createGraph)
          throws java.io.IOException,
                 AutomationException
Initializes the graph.

Specified by:
init in interface IGraph
Parameters:
dataset - A reference to a com.esri.arcgis.geodatabase.IFeatureDataset (in)
graphID - The graphID (in)
graphName - The graphName (in)
buildNormalizedTables - The buildNormalizedTables (in)
createGraph - The createGraph (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

merge

public IEnumFeature merge(IEnumFeature mergingFeatures)
                   throws java.io.IOException,
                          AutomationException
Merges the Features together, returning the newly created Feature.

Specified by:
merge in interface IGraph
Parameters:
mergingFeatures - A reference to a com.esri.arcgis.geodatabase.IEnumFeature (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumFeature
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

split

public ISet split(IEdgeFeature splittingEdge,
                  IGeometry point)
           throws java.io.IOException,
                  AutomationException
Split the feature.

Specified by:
split in interface IGraph
Parameters:
splittingEdge - A reference to a com.esri.arcgis.geodatabase.IEdgeFeature (in)
point - A reference to a com.esri.arcgis.geometry.IGeometry (in)
Returns:
A reference to a com.esri.arcgis.system.ISet
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

transformSet

public void transformSet(ISet features,
                         int type,
                         IAffineTransformation2D tranformation)
                  throws java.io.IOException,
                         AutomationException
Repositions all specified NetworkFeatures and any topologically connected NetworkFeatures.

Specified by:
transformSet in interface IGraph
Parameters:
features - A reference to a com.esri.arcgis.system.ISet (in)
type - A com.esri.arcgis.geodatabase.esriTransformType constant (in)
tranformation - A reference to a com.esri.arcgis.geometry.IAffineTransformation2D (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isVertexBasedStretching

public boolean isVertexBasedStretching()
                                throws java.io.IOException,
                                       AutomationException
The stretching model to nearest vertex (true) or junction (false) based stretching.

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

setVertexBasedStretching

public void setVertexBasedStretching(boolean vertexBased)
                              throws java.io.IOException,
                                     AutomationException
The stretching model to nearest vertex (true) or junction (false) based stretching.

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

getErrorTable

public ITable getErrorTable()
                     throws java.io.IOException,
                            AutomationException
The error table currently associated with the geometric network. This property will return nothing unless it has been set within the running application.

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

setErrorTable

public void setErrorTable(ITable errorTable)
                   throws java.io.IOException,
                          AutomationException
The error table currently associated with the geometric network. This property will return nothing unless it has been set within the running application.

Specified by:
setErrorTable in interface IGeometricNetworkErrorDetection
Parameters:
errorTable - A reference to a com.esri.arcgis.geodatabase.ITable (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createSelectionSetFromErrorTable

public ISet createSelectionSetFromErrorTable()
                                      throws java.io.IOException,
                                             AutomationException
Returns a set of selection sets of the features in the geometric network Error Table.

Specified by:
createSelectionSetFromErrorTable in interface IGeometricNetworkErrorDetection
Returns:
A reference to a com.esri.arcgis.system.ISet
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createErrorTable

public void createErrorTable(java.lang.String name,
                             ITable[] errorTable)
                      throws java.io.IOException,
                             AutomationException
Creates a non-versioned table that can be used to persist error information.

Specified by:
createErrorTable in interface IGeometricNetworkErrorDetection
Parameters:
name - The name (in)
errorTable - A reference to a com.esri.arcgis.geodatabase.ITable (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

detectNetworkErrors

public void detectNetworkErrors(int errorType,
                                IEnvelope areaOfInterest,
                                ISet selectionSets,
                                ISet[] problemSelectionSets)
                         throws java.io.IOException,
                                AutomationException
The features in the geometric network with connectivity problems.

Specified by:
detectNetworkErrors in interface IGeometricNetworkErrorDetection
Parameters:
errorType - A com.esri.arcgis.geodatabase.esriNetworkErrorType constant (in)
areaOfInterest - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
selectionSets - A reference to a com.esri.arcgis.system.ISet (in)
problemSelectionSets - A reference to a com.esri.arcgis.system.ISet (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteNetworkElements

public void deleteNetworkElements(ISet selectionSets)
                           throws java.io.IOException,
                                  AutomationException
Deletes the network elements associated with the specified network features.

Specified by:
deleteNetworkElements in interface IGeometricNetworkErrorDetection
Parameters:
selectionSets - A reference to a com.esri.arcgis.system.ISet (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

checkAndRepairConnectivity

public void checkAndRepairConnectivity(boolean checkOnly,
                                       java.lang.String logFilePath,
                                       ISet[] errorSelectionSets,
                                       boolean[] hasInternalInconsistencies,
                                       IRepairConnectivityProgress repairConnectivityProgress)
                                throws java.io.IOException,
                                       AutomationException
Checks and optionally repairs connectivity.

Specified by:
checkAndRepairConnectivity in interface IGeometricNetworkConnectivity2
Parameters:
checkOnly - The checkOnly (in)
logFilePath - The logFilePath (in)
errorSelectionSets - A reference to a com.esri.arcgis.system.ISet (out: use single element array)
hasInternalInconsistencies - The hasInternalInconsistencies (out: use single element array)
repairConnectivityProgress - A reference to a com.esri.arcgis.geodatabase.IRepairConnectivityProgress (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

rebuildConnectivity2

public void rebuildConnectivity2(IEnvelope incrementalRebuildArea)
                          throws java.io.IOException,
                                 AutomationException
Incrementally rebuilds connectivity for features within and intersecting the specified envelope. Version 2.

Specified by:
rebuildConnectivity2 in interface IGeometricNetworkConnectivity2
Parameters:
incrementalRebuildArea - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

rebuildConnectivity

public void rebuildConnectivity(IEnvelope incrementalRebuildArea)
                         throws java.io.IOException,
                                AutomationException
Incrementally rebuilds connectivity for features within and intersecting the specified envelope.

Specified by:
rebuildConnectivity in interface IGeometricNetworkConnectivity
Parameters:
incrementalRebuildArea - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isReduceNetworkConflicts

public boolean isReduceNetworkConflicts()
                                 throws java.io.IOException,
                                        AutomationException
Indicates if the reconcile plan for the network reduces network conflicts.

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

setReduceNetworkConflicts

public void setReduceNetworkConflicts(boolean reduceNetworkConflicts)
                               throws java.io.IOException,
                                      AutomationException
Indicates if the reconcile plan for the network reduces network conflicts.

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

getMetadata

public IPropertySet getMetadata()
                         throws java.io.IOException,
                                AutomationException
The PropertySet containing metadata.

Specified by:
getMetadata in interface IMetadata
Returns:
A reference to a com.esri.arcgis.system.IPropertySet
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMetadata

public void setMetadata(IPropertySet propertySet)
                 throws java.io.IOException,
                        AutomationException
The PropertySet containing metadata.

Specified by:
setMetadata in interface IMetadata
Parameters:
propertySet - A reference to a com.esri.arcgis.system.IPropertySet (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

synchronize

public void synchronize(int action,
                        int interval)
                 throws java.io.IOException,
                        AutomationException
Updates metadata with the current properties; may create metadata if it doesn't already exist.

Specified by:
synchronize in interface IMetadata
Parameters:
action - A com.esri.arcgis.geodatabase.esriMetadataSyncAction constant (in)
interval - The interval (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isCanEditMetadata

public boolean isCanEditMetadata()
                          throws java.io.IOException,
                                 AutomationException
Indicates if metadata can be edited.

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

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.