com.esri.arcgis.geodatabase
Interface INetTopology

All Superinterfaces:
Serializable
All Known Subinterfaces:
INetTopologyEdit
All Known Implementing Classes:
INetTopologyEditProxy, INetTopologyProxy, StreetNetwork, UtilityNetwork

public interface INetTopology
extends Serializable

Provides access to members that get information about the elements adjacent to the specified element.

When To Use

Use the INetTopology interface to obtain the Element IDs (EIDs), or number of elements that are connected to an element you specify.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
INetTopologyEdit, INetTopology

Method Summary
 void getAdjacentEdge(int atJunctionEID, int index, int[] adjacentEdge, boolean[] reverseOrientation)
          Returns the network element ID of the index'th adjacent edge to the specified junction.
 int getAdjacentEdgeCount(int atJunctionEID)
          Returns the number of edges adjacent to the specified junction.
 void getAdjacentEdges(int atJunctionEID, int adjacentEdgesCount, int[] adjacentEdges, boolean[] reverseOrientation)
          Returns the network element IDs of all the edges adjacent to the specified junction.
 void getFromToJunctionEIDs(int edgeEID, int[] fromJunctionEID, int[] toJunctionEID)
          Returns the network element IDs of the junctions adjacent to the specified edge.
 

Method Detail

getFromToJunctionEIDs

void getFromToJunctionEIDs(int edgeEID,
                           int[] fromJunctionEID,
                           int[] toJunctionEID)
                           throws IOException,
                                  AutomationException
Returns the network element IDs of the junctions adjacent to the specified edge.

Remarks

GetFromToJunctionEIDs returns the Element IDs of the start (From) and end (To) junctions of the specified edge element.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
edgeEID - The edgeEID (in)
fromJunctionEID - The fromJunctionEID (out: use single element array)
toJunctionEID - The toJunctionEID (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAdjacentEdgeCount

int getAdjacentEdgeCount(int atJunctionEID)
                         throws IOException,
                                AutomationException
Returns the number of edges adjacent to the specified junction.

Remarks

GetAdjacentEdgeCount returns the number of edges connect to the specified junction. This property is often used in conjunction with GetAdjacentEdge or GetAdjacentEdges to loop through the edges connected to a junction.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
atJunctionEID - The atJunctionEID (in)
Returns:
The adjacentEdgesCount
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAdjacentEdge

void getAdjacentEdge(int atJunctionEID,
                     int index,
                     int[] adjacentEdge,
                     boolean[] reverseOrientation)
                     throws IOException,
                            AutomationException
Returns the network element ID of the index'th adjacent edge to the specified junction.

Remarks

The GetAdjacentEdge function returns the Element ID of the adjacent edge found at the atJunctionEID that corresponds to the index value.
A ReverseOrientation of True indicates that the Junction is at the To end of the edge, while False indicates the opposite.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
atJunctionEID - The atJunctionEID (in)
index - The index (in)
adjacentEdge - The adjacentEdge (out: use single element array)
reverseOrientation - The reverseOrientation (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAdjacentEdges

void getAdjacentEdges(int atJunctionEID,
                      int adjacentEdgesCount,
                      int[] adjacentEdges,
                      boolean[] reverseOrientation)
                      throws IOException,
                             AutomationException
Returns the network element IDs of all the edges adjacent to the specified junction.

Remarks

GetAdjacentEdges returns an array of the edges connected to the specified junction, along with their orientation.

A ReverseOrientation of True indicates that the Junction is at the To end of the edge, while False indicates the opposite.

INetTopology::GetAdjacentEdges is marked as hidden, since its functionality is similar to IForwardStar::QueryAdjacentEdges(). Clients should use QueryAdjacentEdges, or even use IForwardStarGEN::QueryAdjacentEdges, in lieu of using INetTopology::GetAdjacentEdges.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

This method is not callable from Java. Please see INetTopologyEditGEN::GetAdjacentEdges.

Parameters:
atJunctionEID - The atJunctionEID (in)
adjacentEdgesCount - The adjacentEdgesCount (in)
adjacentEdges - The adjacentEdges (out: use single element array)
reverseOrientation - The reverseOrientation (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.