|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INetworkJunction
Provides access to members that specify the properties of this network junction element.
The INetworkJunction interface is used to query the network junction element for other network elements adjacent to it.
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 |
---|
int getEdgeCount() throws IOException, AutomationException
The EdgeCount is the number of adjacent edge elements leaving this junction.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getTurnCount() throws IOException, AutomationException
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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryEdge(int index, boolean leavingJunction, INetworkEdge edge) throws IOException, AutomationException
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.
index
- The index (in)leavingJunction
- The leavingJunction (in)edge
- A reference to a com.esri.arcgis.geodatabase.INetworkEdge (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryTurn(int index, INetworkTurn turn) throws IOException, AutomationException
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.
index
- The index (in)turn
- A reference to a com.esri.arcgis.geodatabase.INetworkTurn (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryPoint(IPoint point) throws IOException, AutomationException
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).
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |