|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.networkanalyst.NATraversalResult
public class NATraversalResult
Contains the result of a network analysis.
The NATraversalResult object holds the results of the network analysis. It can be retrieved from the NAContext using the INAContext::Result property.
The NATraversalResult is created by most of the solvers as part of the output for network analysis. However, this is not the case for the ODCostMatrixSolver or VRPSolver, which do not output an NATraversalResult.
The contents of an NATraversalResult are not saved with the NALayer. If a map document holding an NALayer is opened, things that need the NATraversalResult contents to work (like the NAStreetDirectionsAgent) will fail until the analysis is re-solved and a traversal result is populated.
The NATraversalResult holds 3 feature classes representing the traversed junctions, edges, and turns. Methods on this object can query these feature classes and map features back to source features in the network dataset.
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 or a feature in an NAClass (stop), or it 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.
Constructor Summary | |
---|---|
NATraversalResult()
Constructs a NATraversalResult using ArcGIS Engine. |
|
NATraversalResult(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. NATraversalResult theNATraversalResult = (NATraversalResult) obj; |
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. |
void |
create(String name,
INAContextHelper nAContextHelper,
boolean isScratch)
Set up for a new analysis. |
int |
createEdge(int sourceID,
int sourceOID,
double fromPosition,
double toPosition,
int fromJunctionID,
int toJunctionID,
IPolyline polyline)
Make a new edge in the result. |
int |
createEdgeEx(int sourceID,
int sourceOID,
int eID,
double fromPosition,
double toPosition,
int fromJunctionID,
int toJunctionID,
IPolyline polyline)
Make a new edge in the result. |
int |
createJunction(int sourceID,
int sourceOID,
IPoint point)
Make a new junction in the result. |
int |
createJunctionEx(int sourceID,
int sourceOID,
int eID,
IPoint point)
Make a new junction in the result. |
int |
createSimpleTurn(int sourceID,
int sourceOID,
int fromEdgeID,
int toEdgeID)
Make a new two edge turn in the result. |
int |
createSimpleTurnEx(int sourceID,
int sourceOID,
int eID,
int fromEdgeID,
int toEdgeID)
Make a new two edge turn in the result. |
void |
emptyAll()
Clear out all existing rows from any previous analysis. |
boolean |
equals(Object o)
Compare this object with another |
INATraversalResultSource |
esri_getSource(int index)
The network traversal source by index. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
String |
getEIDFieldName()
The EID field name |
String |
getElementIDFieldName()
The element ID field name. |
IFeatureClass |
getFeatureClass(int networkElementType)
The feature class by element type. |
String |
getFromEdgeIDFieldName()
The from edge ID field name. |
String |
getFromJunctionIDFieldName()
The from junction ID field name. |
String |
getFromPositionFieldName()
The from position field name. |
INAContext |
getNAContext()
The context for the result. |
String |
getName()
The name of the result. |
IPropertySet |
getOutputProperties()
The properties of the output. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
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. |
String |
getSourceIDFieldName()
The source ID field name. |
String |
getSourceOIDFieldName()
The source OID field name. |
ISpatialReference |
getSpatialReference()
The spatial reference of the result. |
String |
getToEdgeIDFieldName()
The to edge ID field name. |
String |
getToJunctionIDFieldName()
The to junction ID field name. |
String |
getToPositionFieldName()
The to position field name. |
int |
hashCode()
the hashcode for this object |
void |
inferGeometry(String sourceName,
IEnvelope envelope,
ITrackCancel trackCancel)
Constructs the geometry for the result. |
void |
initialize(String name,
INAContext nAContext,
boolean isScratch)
Set up for a new analysis. |
void |
initializeEx(INAContextHelper nAContextHelper)
Provides the result object with a reference to the context. |
void |
isDirty()
isDirty |
boolean |
isHasGeometry()
Indicates if the result has geometry. |
boolean |
isHasValidResult()
Indicates if the current result is valid. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
IFeatureCursor |
searchConnected(INATraversalResultElement element,
int searchedElementType,
int searchedDirection,
boolean recycle)
Returns a connected set of elements in the result. |
void |
setHasValidResult(boolean pFlag)
Indicates if the current result is valid. |
void |
startEditing()
Starts editing the result.. |
void |
stopEditing()
Stops editing the result. |
void |
writeEdgeBuffer(IFeatureBuffer featureBuffer,
int sourceID,
int sourceOID,
double fromPosition,
double toPosition,
int fromJunctionID,
int toJunctionID,
IPolyline polyline)
Make a new edge in the result from the feature buffer. |
void |
writeEdgeBufferEx(IFeatureBuffer featureBuffer,
int sourceID,
int sourceOID,
int eID,
double fromPosition,
double toPosition,
int fromJunctionID,
int toJunctionID,
IPolyline polyline)
Make a new edge in the result from the feature buffer. |
void |
writeExternal(ObjectOutput out)
|
void |
writeJunctionBuffer(IFeatureBuffer featureBuffer,
int sourceID,
int sourceOID,
IPoint point)
Make a new junction in the result from the feature buffer. |
void |
writeJunctionBufferEx(IFeatureBuffer featureBuffer,
int sourceID,
int sourceOID,
int eID,
IPoint point)
Make a new junction in the result from the feature buffer. |
void |
writeSimpleTurnBuffer(IFeatureBuffer featureBuffer,
int sourceID,
int sourceOID,
int fromEdgeID,
int toEdgeID)
Make a new two part turn in the result from the feature buffer. |
void |
writeSimpleTurnBufferEx(IFeatureBuffer featureBuffer,
int sourceID,
int sourceOID,
int eID,
int fromEdgeID,
int toEdgeID)
Make a new two part turn in the result from the feature buffer. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public NATraversalResult() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic NATraversalResult(Object obj) throws IOException
NATraversalResult theNATraversalResult = (NATraversalResult) obj;
obj
to NATraversalResult
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void initialize(String name, INAContext nAContext, boolean isScratch) throws IOException, AutomationException
This method has been deprecated and should not be used. Instead, use INAResult2.Create to initialize a result object after creating it.
initialize
in interface INAResult
name
- The name (in)nAContext
- A reference to a com.esri.arcgis.networkanalyst.INAContext (in)isScratch
- The isScratch (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getOutputProperties() throws IOException, AutomationException
The OutputProperties property returns a PropertySet that may contain information about the results of the network analysis.
The contents of the property set is up to the individual solver. For the solvers that ESRI has released, HasGapsInEdgeCumulativeImpedances returns True if there are impedance values on the junction elements that were traversed. This is important because measures are not generated on the resulting polyline feature class (Route, CFLines, SALines) in this case.
Closest Facility:
HasGapsInEdgeCumulativeImpedances True/False
Route:
HasGapsInEdgeCumulativeImpedances True/False
Service Area:
HasGapsInEdgeCumulativeImpedances True/False
TravelDirection TRAVEL_FROM/TRAVEL_TO
Origin Destination Cost Matrix:
** No TraversalResult generated
getOutputProperties
in interface INAResult
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasValidResult() throws IOException, AutomationException
The HasValidResult property denotes if network analysis has been performed and the result object has been populated with valid information.
isHasValidResult
in interface INAResult
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHasValidResult(boolean pFlag) throws IOException, AutomationException
The HasValidResult property denotes if network analysis has been performed and the result object has been populated with valid information.
setHasValidResult
in interface INAResult
pFlag
- The pFlag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void emptyAll() throws IOException, AutomationException
Clears the traversal result.
emptyAll
in interface INAResult
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
The Name property returns the name of the traversal result that was set during the call to Create.
getName
in interface INAResult
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INAContext getNAContext() throws IOException, AutomationException
The NAContext returns the context that this traversal result was based upon.
getNAContext
in interface INAResult
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void create(String name, INAContextHelper nAContextHelper, boolean isScratch) throws IOException, AutomationException
The method Create is called by the solver when it creates a new result object.
The isScratch parameter specifies if the result feature classes should be kept in memory (false) or saved on disk (true).
The NAContextHelper object passed in is used to get back to the NAContext. You can maintain a strong reference to the NAContextHelper object within your custom result object, but do not hold onto a strong reference to the NAContext itself as this will create a circular reference.
This method should be called instead of INAResult.Initialize.
create
in interface INAResult2
name
- The name (in)nAContextHelper
- A reference to a com.esri.arcgis.networkanalyst.INAContextHelper (in)isScratch
- The isScratch (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void initializeEx(INAContextHelper nAContextHelper) throws IOException, AutomationException
The InitializeEx method is called after the result object has been deserialized as part of the NAContext being loaded. It is called to pass to the result object a backpointer reference to the NAContext that it's bound to.
The NAContextHelper object passed in is used to get back to the NAContext. You can maintain a strong reference to the NAContextHelper object within your custom result object, but do not hold onto a strong reference to the NAContext itself as this will create a circular reference.
initializeEx
in interface INAResult2
nAContextHelper
- A reference to a com.esri.arcgis.networkanalyst.INAContextHelper (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSourceCount() throws IOException, AutomationException
SourceCount returns the number of sources referenced by the traversal result.
getSourceCount
in interface INATraversalResult
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INATraversalResultSource esri_getSource(int index) throws IOException, AutomationException
esri_getSource
in interface INATraversalResult
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INATraversalResultSource getSourceByName(String name) throws IOException, AutomationException
getSourceByName
in interface INATraversalResult
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INATraversalResultSource getSourceByID(int sourceID) throws IOException, AutomationException
getSourceByID
in interface INATraversalResult
sourceID
- The sourceID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
addSource
in interface INATraversalResult
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.public 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.
create
in interface INATraversalResult
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.public 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.
getSpatialReference
in interface INATraversalResult
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
isHasGeometry
in interface INATraversalResult
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void startEditing() throws IOException, AutomationException
The method StartEditing puts the traversal result in a state to quickly add NATraversalResultElements to the underlying feature classes.
startEditing
in interface INATraversalResultEdit
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void stopEditing() throws IOException, AutomationException
The method StopEditing should be called when the solver is done adding NATraversalResultElements to the traversal result's underlying feature classes.
stopEditing
in interface INATraversalResultEdit
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void inferGeometry(String sourceName, IEnvelope envelope, ITrackCancel trackCancel) throws IOException, AutomationException
The InferGeometry method takes a source name (or an empty string which equates to all sources) as input and computes the geometry for each NATraversalResultElement based on its corresponding features in the NetworkDataset and NAContext.
inferGeometry
in interface INATraversalResultEdit
sourceName
- The sourceName (in)envelope
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)trackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int createJunction(int sourceID, int sourceOID, IPoint point) throws IOException, AutomationException
CreateJunction has been superseded by INATraversalResultEdit2.CreateJunctionEx.
createJunction
in interface INATraversalResultEdit
sourceID
- The sourceID (in)sourceOID
- The sourceOID (in)point
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int createEdge(int sourceID, int sourceOID, double fromPosition, double toPosition, int fromJunctionID, int toJunctionID, IPolyline polyline) throws IOException, AutomationException
CreateEdge has been superseded by INATraversalResultEdit2.CreateEdgeEx.
createEdge
in interface INATraversalResultEdit
sourceID
- The sourceID (in)sourceOID
- The sourceOID (in)fromPosition
- The fromPosition (in)toPosition
- The toPosition (in)fromJunctionID
- The fromJunctionID (in)toJunctionID
- The toJunctionID (in)polyline
- A reference to a com.esri.arcgis.geometry.IPolyline (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int createSimpleTurn(int sourceID, int sourceOID, int fromEdgeID, int toEdgeID) throws IOException, AutomationException
CreateSimpleTurn has been superseded by INATraversalResultEdit2.CreateSimpleTurnEx.
createSimpleTurn
in interface INATraversalResultEdit
sourceID
- The sourceID (in)sourceOID
- The sourceOID (in)fromEdgeID
- The fromEdgeID (in)toEdgeID
- The toEdgeID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeJunctionBuffer(IFeatureBuffer featureBuffer, int sourceID, int sourceOID, IPoint point) throws IOException, AutomationException
WriteJunctionBuffer has been superseded by INATraversalResultEdit2.WriteJunctionBufferEx.
writeJunctionBuffer
in interface INATraversalResultEdit
featureBuffer
- A reference to a com.esri.arcgis.geodatabase.IFeatureBuffer (in)sourceID
- The sourceID (in)sourceOID
- The sourceOID (in)point
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeEdgeBuffer(IFeatureBuffer featureBuffer, int sourceID, int sourceOID, double fromPosition, double toPosition, int fromJunctionID, int toJunctionID, IPolyline polyline) throws IOException, AutomationException
WriteEdgeBuffer has been superseded by INATraversalResultEdit2.WriteEdgeBufferEx.
writeEdgeBuffer
in interface INATraversalResultEdit
featureBuffer
- A reference to a com.esri.arcgis.geodatabase.IFeatureBuffer (in)sourceID
- The sourceID (in)sourceOID
- The sourceOID (in)fromPosition
- The fromPosition (in)toPosition
- The toPosition (in)fromJunctionID
- The fromJunctionID (in)toJunctionID
- The toJunctionID (in)polyline
- A reference to a com.esri.arcgis.geometry.IPolyline (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeSimpleTurnBuffer(IFeatureBuffer featureBuffer, int sourceID, int sourceOID, int fromEdgeID, int toEdgeID) throws IOException, AutomationException
WriteSimpleTurnBuffer has been superseded by INATraversalResultEdit2.WriteSimpleTurnBufferEx.
writeSimpleTurnBuffer
in interface INATraversalResultEdit
featureBuffer
- A reference to a com.esri.arcgis.geodatabase.IFeatureBuffer (in)sourceID
- The sourceID (in)sourceOID
- The sourceOID (in)fromEdgeID
- The fromEdgeID (in)toEdgeID
- The toEdgeID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int createJunctionEx(int sourceID, int sourceOID, int eID, IPoint point) throws IOException, AutomationException
CreateJunctionEx creates a junction in the traversal results junction feature class.
It is unnecessary to pass in a geometry. If passed in, it will be used. Otherwise, it is possible to call InferGeometry later to infer all of the geometries.
createJunctionEx
in interface INATraversalResultEdit2
sourceID
- The sourceID (in)sourceOID
- The sourceOID (in)eID
- The eID (in)point
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int createEdgeEx(int sourceID, int sourceOID, int eID, double fromPosition, double toPosition, int fromJunctionID, int toJunctionID, IPolyline polyline) throws IOException, AutomationException
CreateEdgeEx creates an edge in the traversal results edge feature class.
It is unnecessary to pass in a geometry. If passed in, it will be used. Otherwise, it is possible to call InferGeometry later to infer all of the geometries.
createEdgeEx
in interface INATraversalResultEdit2
sourceID
- The sourceID (in)sourceOID
- The sourceOID (in)eID
- The eID (in)fromPosition
- The fromPosition (in)toPosition
- The toPosition (in)fromJunctionID
- The fromJunctionID (in)toJunctionID
- The toJunctionID (in)polyline
- A reference to a com.esri.arcgis.geometry.IPolyline (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int createSimpleTurnEx(int sourceID, int sourceOID, int eID, int fromEdgeID, int toEdgeID) throws IOException, AutomationException
CreateSimpleTurnEx creates a turn between two edges in the traversal results turn feature class.
createSimpleTurnEx
in interface INATraversalResultEdit2
sourceID
- The sourceID (in)sourceOID
- The sourceOID (in)eID
- The eID (in)fromEdgeID
- The fromEdgeID (in)toEdgeID
- The toEdgeID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeJunctionBufferEx(IFeatureBuffer featureBuffer, int sourceID, int sourceOID, int eID, IPoint point) throws IOException, AutomationException
WriteJunctionBufferEx populates the input FeatureBuffer with the other input parameters. This FeatureBuffer can then be passed to an insert cursor on the traversal result feature class.
writeJunctionBufferEx
in interface INATraversalResultEdit2
featureBuffer
- A reference to a com.esri.arcgis.geodatabase.IFeatureBuffer (in)sourceID
- The sourceID (in)sourceOID
- The sourceOID (in)eID
- The eID (in)point
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeEdgeBufferEx(IFeatureBuffer featureBuffer, int sourceID, int sourceOID, int eID, double fromPosition, double toPosition, int fromJunctionID, int toJunctionID, IPolyline polyline) throws IOException, AutomationException
WriteEdgeBufferEx populates the input FeatureBuffer with the other input parameters. This FeatureBuffer can then be passed to an insert cursor on the traversal result feature class.
writeEdgeBufferEx
in interface INATraversalResultEdit2
featureBuffer
- A reference to a com.esri.arcgis.geodatabase.IFeatureBuffer (in)sourceID
- The sourceID (in)sourceOID
- The sourceOID (in)eID
- The eID (in)fromPosition
- The fromPosition (in)toPosition
- The toPosition (in)fromJunctionID
- The fromJunctionID (in)toJunctionID
- The toJunctionID (in)polyline
- A reference to a com.esri.arcgis.geometry.IPolyline (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeSimpleTurnBufferEx(IFeatureBuffer featureBuffer, int sourceID, int sourceOID, int eID, int fromEdgeID, int toEdgeID) throws IOException, AutomationException
WriteSimpleTurnBufferEx populates the input FeatureBuffer with the other input parameters. This FeatureBuffer can then be passed to an insert cursor on the traversal result feature class.
writeSimpleTurnBufferEx
in interface INATraversalResultEdit2
featureBuffer
- A reference to a com.esri.arcgis.geodatabase.IFeatureBuffer (in)sourceID
- The sourceID (in)sourceOID
- The sourceOID (in)eID
- The eID (in)fromEdgeID
- The fromEdgeID (in)toEdgeID
- The toEdgeID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureClass getFeatureClass(int networkElementType) throws IOException, AutomationException
getFeatureClass
in interface INATraversalResultQuery
networkElementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureCursor searchConnected(INATraversalResultElement element, int searchedElementType, int searchedDirection, boolean recycle) throws IOException, AutomationException
The SearchConnected method returns the NATraversalResultElements that are connected to the input NATraversalResultElement.
The searchedElementType parameter allows you to specify if you want to find the connected junctions, edges, or turns. The searchedDirection parameter specifies the direction. For example, esriRelDirectionForward will constrain the returned elements to just be those that were reached in the traversal after the current element.
The recycle parameter specifies that the same feature object should be used over and over with the underlying data just switched out. Use this option if you don't need to keep references to multiple traversal elements at the same time.
searchConnected
in interface INATraversalResultQuery
element
- A reference to a com.esri.arcgis.networkanalyst.INATraversalResultElement (in)searchedElementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)searchedDirection
- A com.esri.arcgis.geodatabase.esriRelDirection constant (in)recycle
- The recycle (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getElementIDFieldName() throws IOException, AutomationException
Specifies the ElementID field name. The ElementID field value provides the ObjectID of the NATraversalResultElement.
getElementIDFieldName
in interface INATraversalResultQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getSourceIDFieldName() throws IOException, AutomationException
Specifies the SourceID field name. The SourceID field value provides the SourceID of the feature class the NATraversalResultElement is referencing. This references the SourceID of a NATraversalResultSource accessed through INATraversalResult.
getSourceIDFieldName
in interface INATraversalResultQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getSourceOIDFieldName() throws IOException, AutomationException
Specifies the SourceOID field name. The SourceOID field value provides the ObjectID of the Feature in the NetworkDataset's or NAContext's FeatureClass.
getSourceOIDFieldName
in interface INATraversalResultQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getFromPositionFieldName() throws IOException, AutomationException
Specifies the FromPosition field name. The FromPosition field value provides the starting position of an NATraversalResultElement on the underlying feature in the network dataset.
getFromPositionFieldName
in interface INATraversalResultQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getToPositionFieldName() throws IOException, AutomationException
Specifies the ToPosition field name. The ToPosition field value provides the ending position of an NATraversalResultElement on the underlying feature in the network dataset.
getToPositionFieldName
in interface INATraversalResultQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getFromJunctionIDFieldName() throws IOException, AutomationException
Specifies the FromJunctionID field name.
getFromJunctionIDFieldName
in interface INATraversalResultQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getToJunctionIDFieldName() throws IOException, AutomationException
Specifies the ToJunctionID field name.
getToJunctionIDFieldName
in interface INATraversalResultQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getFromEdgeIDFieldName() throws IOException, AutomationException
Specifies the FromEdgeID field name.
getFromEdgeIDFieldName
in interface INATraversalResultQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getToEdgeIDFieldName() throws IOException, AutomationException
Specifies the ToEdgeID field name.
getToEdgeIDFieldName
in interface INATraversalResultQuery
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getEIDFieldName() throws IOException, AutomationException
Specifies the EID field name.
getEIDFieldName
in interface INATraversalResultQuery2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |