|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INetworkQuery
Provides access to members that query the elements of the network dataset.
The INetworkQuery interface is used to retrieve the elements of the network dataset. You can query for network elements by their element type, by the source that generated them, or by the Object IDs of their source features.
You can also query other elements that are immediately adjacent to given elements by using the NetworkForwardStar object. This object allows you to repeatedly query the adjacent elements and their attribute values efficiently.
Method Summary | |
---|---|
void |
clearIDCache()
Empties the contents of the index used for finding network elements by source. |
INetworkForwardStar |
createForwardStar()
Creates a NetworkForwardStar object for traversing the network dataset. |
INetworkForwardStarAdjacencies |
createForwardStarAdjacencies()
Creates a NetworkForwardStarAdjacencies container object for forward star queries. |
INetworkElement |
createNetworkElement(int elementType)
Creates an uninitialized network element of the specified type for use in network dataset queries. |
int |
getComplexTurnCount()
Number of turn elements in the network dataset having more than two edge elements participating. |
IEnumNetworkElement |
getEdgesByPosition(int sourceID,
int oID,
double position,
boolean includeRelatedSDCHyperEdges)
Edge elements in the network dataset with a from and to position that includes the given position for the given source object. |
IEnumNetworkElement |
getEdgesBySegment(int sourceID,
int oID,
double fromPosition,
double toPosition)
Edge elements in the network dataset with a from and to position included in the given range for the given source object. |
int |
getElementCount(int elementType)
Number of network elements of the given type in the network dataset. |
IEnumNetworkElement |
getElements(int elementType)
Enumeration of all elements in the network dataset of the given type. |
IEnumNetworkElement |
getElementsByOID(int sourceID,
int oID)
Elements in the network dataset corresponding to the given source object. |
IEnumNetworkElement |
getElementsByOIDs(int sourceID,
ILongArray oids)
Elements in the network dataset corresponding to the given source objects. |
IEnumNetworkElement |
getElementsForSource(int sourceID)
Enumeration of all elements in the network dataset corresponding to the given source. |
int |
getMaxEID(int elementType)
Highest element ID in the network dataset for the given element type. |
int |
getMaxValence()
Maximum number of edge elements connected to any single junction element. |
void |
populateIDCache(int sourceID)
Initializes the index used for quickly finding network elements for the given source ID. |
void |
queryEdge(int eID,
int direction,
INetworkEdge edge)
Performs a network edge element query by element ID and edge direction and populates the given edge element object. |
void |
queryJunction(int eID,
INetworkJunction junction)
Performs a network junction element query by element ID and populates the given junction element object. |
void |
queryTurn(int eID,
INetworkTurn turn)
Performs a network turn element query by element ID and populates the given turn element object. |
Method Detail |
---|
int getMaxEID(int elementType) throws IOException, AutomationException
elementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxValence() throws IOException, AutomationException
The MaxValence is the largest number of edge elements in the network that are adjacent to a single junction element.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getElementCount(int elementType) throws IOException, AutomationException
elementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getComplexTurnCount() throws IOException, AutomationException
The ComplexTurnCount is the number of turn elements that traverse three or more edge elements in the network.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INetworkForwardStar createForwardStar() throws IOException, AutomationException
CreateForwardStar can only be called when a Network license is checked out.
Before using the NetworkForwardStar object, you must specify its traversal parameters in the INetworkForwardStarSetup interface.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INetworkForwardStarAdjacencies createForwardStarAdjacencies() throws IOException, AutomationException
The NetworkForwardStarAdjacencies object is populated by passing it as a parameter to the INetworkForwardStar::QueryAdjacencies method. The NetworkForwardStarAdjacencies object should be reused in subsequent calls to INetworkForwardStar::QueryAdjacencies.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INetworkElement createNetworkElement(int elementType) throws IOException, AutomationException
The CreateNetworkElement method creates an empty network element object of the specified element type. This object is passed to the Query methods on the INetworkQuery, INetworkForwardStarAdjacencies, INetworkJunction, INetworkEdge, and INetworkTurn interfaces. When calling these Query methods, the empty network element object is populated with the appropriate information from the queried element.
elementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryEdge(int eID, int direction, INetworkEdge edge) throws IOException, AutomationException
The QueryEdge method requires an instantiated NetworkEdge object to be passed in as a parameter. You can create an empty NetworkEdge object by using the CreateNetworkElement method.
eID
- The eID (in)direction
- A com.esri.arcgis.geodatabase.esriNetworkEdgeDirection constant (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 queryJunction(int eID, INetworkJunction junction) throws IOException, AutomationException
The QueryJunction method requires an instantiated NetworkJunction object to be passed in as a parameter. You can create an empty NetworkJunction object by using the CreateNetworkElement method.
eID
- The eID (in)junction
- A reference to a com.esri.arcgis.geodatabase.INetworkJunction (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryTurn(int eID, INetworkTurn turn) throws IOException, AutomationException
The QueryTurn method requires an instantiated NetworkTurn object to be passed in as a parameter. You can create an empty NetworkTurn object by using the CreateNetworkElement method.
eID
- The eID (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.IEnumNetworkElement getElementsByOID(int sourceID, int oID) throws IOException, AutomationException
sourceID
- The sourceID (in)oID
- The oID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumNetworkElement getEdgesByPosition(int sourceID, int oID, double position, boolean includeRelatedSDCHyperEdges) throws IOException, AutomationException
sourceID
- The sourceID (in)oID
- The oID (in)position
- The position (in)includeRelatedSDCHyperEdges
- The includeRelatedSDCHyperEdges (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumNetworkElement getEdgesBySegment(int sourceID, int oID, double fromPosition, double toPosition) throws IOException, AutomationException
sourceID
- The sourceID (in)oID
- The oID (in)fromPosition
- The fromPosition (in)toPosition
- The toPosition (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumNetworkElement getElements(int elementType) throws IOException, AutomationException
elementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumNetworkElement getElementsByOIDs(int sourceID, ILongArray oids) throws IOException, AutomationException
sourceID
- The sourceID (in)oids
- A reference to a com.esri.arcgis.system.ILongArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumNetworkElement getElementsForSource(int sourceID) throws IOException, AutomationException
sourceID
- The sourceID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void clearIDCache() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void populateIDCache(int sourceID) throws IOException, AutomationException
The PopulateIDCache method caches the IDs for network elements in the specified source, improving the performance of element queries. Populating the ID cache is useful when performing many queries for network elements within those cached source(s).
The SourceID parameter is the unique ID assigned to the NetworkSource in the network dataset.
sourceID
- The sourceID (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 |