|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INATraversalResultSource
Provides access to traversal results for a particular source.
The INATraversalResultSource interface is the main interface for the NATraversalResultSource.
The NATraversalResult has 3 feature classes representing edges, junctions, and turns. The SourceID field on these feature classes references an NATraversalResultSource object's ID property. From a particular NATraversalResultSource, you can find its corresponding feature class in the NetworkDataset or NAContext by accessing either the Location or Name property on the INATraversalResultSource interface.
Method Summary | |
---|---|
int |
getElementType()
The network element type. |
int |
getID()
The result source ID. |
IDatasetName |
getLocation()
The result source location. |
String |
getName()
The result source name. |
int |
getResultSourceType()
The result source type. |
ITable |
getTable()
The result source table. |
void |
setElementType(int networkElementType)
The network element type. |
void |
setLocationByRef(IDatasetName name)
The result source location. |
void |
setName(String name)
The result source name. |
void |
setResultSourceType(int sourceType)
The result source type. |
Method Detail |
---|
void setElementType(int networkElementType) throws IOException, AutomationException
The ElementType property specifies the type of traversal element the source represents. The valid values for the enumeration esriNetworkElementType include:
networkElementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getElementType() throws IOException, AutomationException
The ElementType property specifies the type of traversal element the source represents. The valid values for the enumeration esriNetworkElementType include:
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setName(String name) throws IOException, AutomationException
This is the name of the NATraversalResultSource.
If the ResultSourceType is esriNATraversalResultSourceNetworkSource, then the convention is for the Name to be the name of the source in the NetworkDataset, prefixed with 'ND_'. For example, if there is a source in the NetworkDataset named 'Streets', the NATraversalResultSource Name property would be 'ND_Streets'.
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getName() throws IOException, AutomationException
This is the name of the NATraversalResultSource.
If the ResultSourceType is esriNATraversalResultSourceNetworkSource, then the convention is for the Name to be the name of the source in the NetworkDataset, prefixed with 'ND_'. For example, if there is a source in the NetworkDataset named 'Streets', the NATraversalResultSource Name property would be 'ND_Streets'.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setResultSourceType(int sourceType) throws IOException, AutomationException
The ResultSourceType property refers to the type of traversal element the source represents. The valid values for the enumeration esriNATraversalResultSourceType include:
sourceType
- A com.esri.arcgis.networkanalyst.esriNATraversalResultSourceType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getResultSourceType() throws IOException, AutomationException
The ResultSourceType property refers to the type of traversal element the source represents. The valid values for the enumeration esriNATraversalResultSourceType include:
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getID() throws IOException, AutomationException
The SourceID of the NATraversalResultSource.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLocationByRef(IDatasetName name) throws IOException, AutomationException
The Location property holds an IDatasetName interface that references the corresponding source in the NAContext or NetworkDataset.
name
- A reference to a com.esri.arcgis.geodatabase.IDatasetName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IDatasetName getLocation() throws IOException, AutomationException
The Location property holds an IDatasetName interface that references the corresponding source in the NAContext or NetworkDataset.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ITable getTable() throws IOException, AutomationException
The Table property returns an ITable interface that references the corresponding source in the NAContext or NetworkDataset.
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 |