|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.geodatabase.INetworkQueryProxy
public class INetworkQueryProxy
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.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
INetworkQueryProxy()
|
|
INetworkQueryProxy(Object obj)
|
protected |
INetworkQueryProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
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. |
void |
removeListener(String iidStr,
Object theListener)
|
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public INetworkQueryProxy()
public INetworkQueryProxy(Object obj) throws IOException
IOException
protected INetworkQueryProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public int getMaxEID(int elementType) throws IOException, AutomationException
getMaxEID
in interface INetworkQuery
elementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getMaxValence
in interface INetworkQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getElementCount(int elementType) throws IOException, AutomationException
getElementCount
in interface INetworkQuery
elementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getComplexTurnCount() throws IOException, AutomationException
The ComplexTurnCount is the number of turn elements that traverse three or more edge elements in the network.
getComplexTurnCount
in interface INetworkQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
createForwardStar
in interface INetworkQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
createForwardStarAdjacencies
in interface INetworkQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
createNetworkElement
in interface INetworkQuery
elementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
queryEdge
in interface INetworkQuery
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.public 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.
queryJunction
in interface INetworkQuery
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.public 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.
queryTurn
in interface INetworkQuery
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.public IEnumNetworkElement getElementsByOID(int sourceID, int oID) throws IOException, AutomationException
getElementsByOID
in interface INetworkQuery
sourceID
- The sourceID (in)oID
- The oID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumNetworkElement getEdgesByPosition(int sourceID, int oID, double position, boolean includeRelatedSDCHyperEdges) throws IOException, AutomationException
getEdgesByPosition
in interface INetworkQuery
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.public IEnumNetworkElement getEdgesBySegment(int sourceID, int oID, double fromPosition, double toPosition) throws IOException, AutomationException
getEdgesBySegment
in interface INetworkQuery
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.public IEnumNetworkElement getElements(int elementType) throws IOException, AutomationException
getElements
in interface INetworkQuery
elementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumNetworkElement getElementsByOIDs(int sourceID, ILongArray oids) throws IOException, AutomationException
getElementsByOIDs
in interface INetworkQuery
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.public IEnumNetworkElement getElementsForSource(int sourceID) throws IOException, AutomationException
getElementsForSource
in interface INetworkQuery
sourceID
- The sourceID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clearIDCache() throws IOException, AutomationException
clearIDCache
in interface INetworkQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
populateIDCache
in interface INetworkQuery
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 |