com.esri.arcgis.geodatabase
Interface INetworkJunction

All Superinterfaces:
INetworkElement, Serializable
All Known Subinterfaces:
INetworkJunction2
All Known Implementing Classes:
INetworkJunction2Proxy, INetworkJunctionProxy, NetworkJunction

public interface INetworkJunction
extends INetworkElement, Serializable

Provides access to members that specify the properties of this network junction element.

Remarks

The INetworkJunction interface is used to query the network junction element for other network elements adjacent to it.

Product Availability

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


Method Summary
 int getEdgeCount()
          Number of network edge elements adjacent to this network junction element.
 int getTurnCount()
          Number of network turn elements anchored at this network junction.
 void queryEdge(int index, boolean leavingJunction, INetworkEdge edge)
          Queries the index'th network edge element adjacent to this network junction element.
 void queryPoint(IPoint point)
          Queries the point object corresponding to this network junction element.
 void queryTurn(int index, INetworkTurn turn)
          Queries the index'th network turn element anchored at this network junction element.
 
Methods inherited from interface com.esri.arcgis.geodatabase.INetworkElement
getAttributeValue, getAttributeValueByName, getEID, getElementType, getOID, getSourceID
 

Method Detail

getEdgeCount

int getEdgeCount()
                 throws IOException,
                        AutomationException
Number of network edge elements adjacent to this network junction element.

Remarks

The EdgeCount is the number of adjacent edge elements leaving this junction.

Product Availability

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

Returns:
The adjacentEdgeCount
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTurnCount

int getTurnCount()
                 throws IOException,
                        AutomationException
Number of network turn elements anchored at this network junction.

Remarks

The TurnCount is the number of turn elements that are anchored to this junction. A turn element is anchored at a junction if the last two edges of the turn pass through the junction.

Product Availability

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

Returns:
The turnCount
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryEdge

void queryEdge(int index,
               boolean leavingJunction,
               INetworkEdge edge)
               throws IOException,
                      AutomationException
Queries the index'th network edge element adjacent to this network junction element.

Remarks

The QueryEdge method retrieves the edge element adjacent to this junction at the specified index. The index values range from 0 to (EdgeCount - 1).

The leavingJunction parameter determines in which travel direction the edge element is returned. If the leavingJunction parameter is True, then the edge element returned is the element that travels in the direction away from the junction.

This method requires an instantiated NetworkEdge object to be passed in as a parameter. You can create an empty NetworkEdge object by using the INetworkQuery::CreateNetworkElement method.

Product Availability

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

Parameters:
index - The index (in)
leavingJunction - The leavingJunction (in)
edge - A reference to a com.esri.arcgis.geodatabase.INetworkEdge (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryTurn

void queryTurn(int index,
               INetworkTurn turn)
               throws IOException,
                      AutomationException
Queries the index'th network turn element anchored at this network junction element.

Remarks

The QueryTurn method retrieves the turn element anchored to this junction at the specified index. A turn element is anchored at a junction if the last two edges of the turn pass through the junction. The index values range from 0 to (TurnCount - 1).

This method requires an instantiated NetworkTurn object to be passed in as a parameter. You can create an empty NetworkTurn object by using the INetworkQuery::CreateNetworkElement method.

Product Availability

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

Parameters:
index - The index (in)
turn - A reference to a com.esri.arcgis.geodatabase.INetworkTurn (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryPoint

void queryPoint(IPoint point)
                throws IOException,
                       AutomationException
Queries the point object corresponding to this network junction element.

Remarks

The QueryPoint method retrieves the Point geometry associated with this junction element.

This method requires an instantiated Point object to be passed in as a parameter.

On an SDC network dataset, QueryPoint returns an empty Point object for junction elements that do not connect to any edges (i.e., have an EdgeCount of zero).

Product Availability

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

Parameters:
point - A reference to a com.esri.arcgis.geometry.IPoint (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.