|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INATraversalResult
Provides access to the properties of a traversal result.
The INATraversalResult interface provides methods for accessing the sources referenced by the traversal result. It also allows people writing custom solvers to create the schema of a traversal result.
There is a level of indirection in the NATraversalResult. Each element in the NATraversalResult represents a network feature in the source network that was traversed, a feature in an NAClass (stop), or can be unrelated to any external feature (where multiple stops are located at the same place and the edges between the stops are virtual). Due to this, you need to use the methods in INATraversalResult to determine the mapping between the traversal source and its feature class in the NetworkDataset or NAContext. There are several methods that return an NATraversalResultSource object with this information.
The Create and AddSource methods are used during the creation of an NATraversalResult to create the junction, edge, and turn feature classes that comprise the traversal result as well as to add sources that providing the mapping back to feature classes in the NetworkDataset or NAContext.
Method Summary | |
---|---|
void |
addSource(INATraversalResultSource resultSource)
Add a network traversal source. |
void |
create(IFields junctionFields,
IFields edgeFields,
IFields simpleTurnFields,
boolean hasMs)
Makes a new traversal result. |
INATraversalResultSource |
esri_getSource(int index)
The network traversal source by index. |
INATraversalResultSource |
getSourceByID(int sourceID)
The network traversal source by ID. |
INATraversalResultSource |
getSourceByName(String name)
The network traversal source by name. |
int |
getSourceCount()
The number of network sources. |
ISpatialReference |
getSpatialReference()
The spatial reference of the result. |
boolean |
isHasGeometry()
Indicates if the result has geometry. |
Method Detail |
---|
int getSourceCount() throws IOException, AutomationException
SourceCount returns the number of sources referenced by the traversal result.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INATraversalResultSource esri_getSource(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INATraversalResultSource getSourceByName(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INATraversalResultSource getSourceByID(int sourceID) throws IOException, AutomationException
sourceID
- The sourceID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addSource(INATraversalResultSource resultSource) throws IOException, AutomationException
The AddSource method is used by people writing custom solvers to add a source to the traversal result.
resultSource
- A reference to a com.esri.arcgis.networkanalyst.INATraversalResultSource (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void create(IFields junctionFields, IFields edgeFields, IFields simpleTurnFields, boolean hasMs) throws IOException, AutomationException
The Create method is used by people writing custom solvers to allow them to setup the 3 feature classes of the traversal result corresponding to edges, junctions, and turns.
junctionFields
- A reference to a com.esri.arcgis.geodatabase.IFields (in)edgeFields
- A reference to a com.esri.arcgis.geodatabase.IFields (in)simpleTurnFields
- A reference to a com.esri.arcgis.geodatabase.IFields (in)hasMs
- The hasMs (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISpatialReference getSpatialReference() throws IOException, AutomationException
SpatialReference returns the spatial reference of the traversal result. This should be the same as the network dataset and analysis layer.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isHasGeometry() throws IOException, AutomationException
The property HasGeometry returns true if the InferGeometry method has been called on the INATraversalResultEdit interface. If HasGeometry returns false, the features in the traversal result do not have a geometry yet.
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 |