|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.networkanalyst.NATraversalResultSource
public class NATraversalResultSource
Traversal results for a particular source.
The NATraversalResultSource object holds the mapping to determine the feature class that a particular NATraversalResultElement is referencing based on its SourceID property.
The NATraversalResult has three 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.
Constructor Summary | |
---|---|
NATraversalResultSource()
Constructs a NATraversalResultSource using ArcGIS Engine. |
|
NATraversalResultSource(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. NATraversalResultSource theNATraversalResultSource = (NATraversalResultSource) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
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. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
ITable |
getTable()
The result source table. |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
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. |
void |
writeExternal(ObjectOutput out)
|
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 NATraversalResultSource() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic NATraversalResultSource(Object obj) throws IOException
NATraversalResultSource theNATraversalResultSource = (NATraversalResultSource) obj;
obj
to NATraversalResultSource
.
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 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:
setElementType
in interface INATraversalResultSource
networkElementType
- A com.esri.arcgis.geodatabase.esriNetworkElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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:
getElementType
in interface INATraversalResultSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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'.
setName
in interface INATraversalResultSource
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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'.
getName
in interface INATraversalResultSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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:
setResultSourceType
in interface INATraversalResultSource
sourceType
- A com.esri.arcgis.networkanalyst.esriNATraversalResultSourceType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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:
getResultSourceType
in interface INATraversalResultSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getID() throws IOException, AutomationException
The SourceID of the NATraversalResultSource.
getID
in interface INATraversalResultSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLocationByRef(IDatasetName name) throws IOException, AutomationException
The Location property holds an IDatasetName interface that references the corresponding source in the NAContext or NetworkDataset.
setLocationByRef
in interface INATraversalResultSource
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.public IDatasetName getLocation() throws IOException, AutomationException
The Location property holds an IDatasetName interface that references the corresponding source in the NAContext or NetworkDataset.
getLocation
in interface INATraversalResultSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITable getTable() throws IOException, AutomationException
The Table property returns an ITable interface that references the corresponding source in the NAContext or NetworkDataset.
getTable
in interface INATraversalResultSource
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 |