|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INATraversalResultElement
Provides access to traversal result elements.
The INATraversalResultElement is the main interface on the NATraversalResultElement object. It provides the properties ElementID, ElementType, SourceID, SourceOID, FromPosition, and ToPosition to retrieve the corresponding information stored in the feature.
You can use the properties on this interface to retrieve the information from the row, or you can simply query the value from the row yourself after first determining the field name from the INATraversalResultQuery interface. This is what the various properties mean:
Method Summary | |
---|---|
int |
getElementID()
The result element ID. |
int |
getElementType()
The result element type. |
double |
getFromPosition()
The starting position of the result element on the result source. |
int |
getSourceID()
The result element source ID. |
int |
getSourceOID()
The result element source OID. |
double |
getToPosition()
The ending position of the result element on the result source. |
void |
setFromPosition(double position)
The starting position of the result element on the result source. |
void |
setSourceID(int sourceID)
The result element source ID. |
void |
setSourceOID(int sourceOID)
The result element source OID. |
void |
setToPosition(double position)
The ending position of the result element on the result source. |
Method Detail |
---|
int getElementID() throws IOException, AutomationException
The ObjectID of the NATraversalResultElement.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getElementType() throws IOException, AutomationException
The type of traversal element (esriNETJunction, esriNETEdge, or esriNETTurn).
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSourceID(int sourceID) throws IOException, AutomationException
The SourceID property specifies the SourceID of the feature class the NATraversalResultElement is referencing. This references the SourceID of an NATraversalResultSource accessed through INATraversalResult.
sourceID
- The sourceID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSourceID() throws IOException, AutomationException
The SourceID property specifies the SourceID of the feature class the NATraversalResultElement is referencing. This references the SourceID of an NATraversalResultSource accessed through INATraversalResult.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSourceOID(int sourceOID) throws IOException, AutomationException
The SourceOID property specifies the ObjectID of the Feature in the NetworkDataset's or NAContext's FeatureClass.
sourceOID
- The sourceOID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSourceOID() throws IOException, AutomationException
The SourceOID property specifies the ObjectID of the Feature in the NetworkDataset's or NAContext's FeatureClass.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFromPosition(double position) throws IOException, AutomationException
The FromPosition property specifies the starting position of an NATraversalResultElement on the underlying feature in the network dataset.
position
- The position (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getFromPosition() throws IOException, AutomationException
The FromPosition property specifies the starting position of an NATraversalResultElement on the underlying feature in the network dataset.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setToPosition(double position) throws IOException, AutomationException
The ToPosition property specifies the ending position of an NATraversalResultElement on the underlying feature in the network dataset.
position
- The position (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getToPosition() throws IOException, AutomationException
The ToPosition property specifies the ending position of an NATraversalResultElement on the underlying feature in the network dataset.
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 |