com.esri.arcgis.networkanalyst
Class NACompactStreetDirectionsAgent

java.lang.Object
  extended by com.esri.arcgis.networkanalyst.NACompactStreetDirectionsAgent
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, INAAgent, INACompactStreetDirectionsAgent, INACompactStreetDirectionsAgent2, IPersist, IPersistStream, ISupportErrorInfo, IXMLSerialize, java.io.Externalizable, java.io.Serializable

public class NACompactStreetDirectionsAgent
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, INAAgent, INACompactStreetDirectionsAgent, INACompactStreetDirectionsAgent2, IPersist, IPersistStream, IXMLSerialize, ISupportErrorInfo, java.io.Externalizable

COM Class 'NACompactStreetDirectionsAgent'. Generated 3/19/2015 1:20:45 PM from 'C:\ArcGIS\COM\esriNetworkAnalyst.olb'

Description 'Generates compact driving directions for network analysis results.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Fields inherited from interface com.esri.arcgis.networkanalyst.INAAgent
IID, IIDa6af9d1f_a27c_4df8_b989_8844173c776f, xxDummy
 
Fields inherited from interface com.esri.arcgis.networkanalyst.INACompactStreetDirectionsAgent2
IID, IID583bf59e_75c6_4ef8_9dfe_46b700623618, xxDummy
 
Fields inherited from interface com.esri.arcgis.networkanalyst.INACompactStreetDirectionsAgent
IIDfd2adb84_43c1_48e6_910e_8e2c7ebe63a9
 
Fields inherited from interface com.esri.arcgis.system.IPersistStream
IID, IID00000109_0000_0000_c000_000000000046, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IPersist
IID0000010c_0000_0000_c000_000000000046
 
Fields inherited from interface com.esri.arcgis.system.IXMLSerialize
IID, IIDc8545045_6615_48e3_af27_52a0e5fc35e2, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
 
Constructor Summary
NACompactStreetDirectionsAgent()
          Constructs a NACompactStreetDirectionsAgent using ArcGIS Engine.
NACompactStreetDirectionsAgent(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
NACompactStreetDirectionsAgent theNACompactStreetDirectionsAgent = (NACompactStreetDirectionsAgent) obj;
 
Method Summary
 boolean applies(IDENetworkDataset network, INAContextHelper contextHelper)
          Indicates if the agent is appropriate to use with the given network dataset.
 void deserialize(IXMLSerializeData data)
          Deserializes an object from XML.
 boolean equals(java.lang.Object o)
          Compare this object with another
 void execute(ISet set, ITrackCancel trackCancel)
          Constructs the directions.
 IStringArray getAvailableStyleNames()
          The collection of style names supported by the agent.
 void getClassID(GUID[] pClassID)
          getClassID
static java.lang.String getClsid()
          getClsid.
 INACompactStreetDirectionsContainer getDirectionsContainer()
          The container for the directions.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 java.lang.String getLanguage()
          Language to use when generating directions.
 int getLengthUnits()
          The length units.
 java.lang.String getName()
          The name of the agent.
 ISpatialReference getOutputSpatialReference()
          Output spatial reference to use for geometries returned by the directions objects.
 int getOutputType()
          Output type to use when generating directions.
 void getSizeMax(_ULARGE_INTEGER[] pcbSize)
          getSizeMax
 java.lang.String getStyleName()
          Style name to use when generating directions.
 IStringArray getSupportedLanguages()
          The collection of languages supported by the agent.
 java.lang.String getTimeAttributeName()
          The network attribute for time calculation.
 int hashCode()
          the hashcode for this object
 void initialize(IDENetworkDataset network, INAContextHelper contextHelper)
          Get the agent ready for action.
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 void isDirty()
          isDirty
 void load(IStream pstm)
          load
 void onContextUpdated()
          Called when the context is updated.
 void onResultUpdated()
          Called when a result is updated.
 void readExternal(java.io.ObjectInput in)
           
 void release()
          Release a NACompactStreetDirectionsAgent.
 void save(IStream pstm, int fClearDirty)
          save
 void serialize(IXMLSerializeData data)
          Serializes an object to XML.
 void setLanguage(java.lang.String strLanguage)
          Language to use when generating directions.
 void setLengthUnits(int units)
          The length units.
 void setOutputSpatialReferenceByRef(ISpatialReference ppSpatialReference)
          Output spatial reference to use for geometries returned by the directions objects.
 void setOutputType(int pOutputType)
          Output type to use when generating directions.
 void setStyleName(java.lang.String pStyleName)
          Style name to use when generating directions.
 void setTimeAttributeName(java.lang.String name)
          The network attribute for time calculation.
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

NACompactStreetDirectionsAgent

public NACompactStreetDirectionsAgent()
                               throws java.io.IOException,
                                      java.net.UnknownHostException
Constructs a NACompactStreetDirectionsAgent using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

NACompactStreetDirectionsAgent

public NACompactStreetDirectionsAgent(java.lang.Object obj)
                               throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
NACompactStreetDirectionsAgent theNACompactStreetDirectionsAgent = (NACompactStreetDirectionsAgent) obj;

Construct a NACompactStreetDirectionsAgent using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to NACompactStreetDirectionsAgent.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a NACompactStreetDirectionsAgent.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getName

public java.lang.String getName()
                         throws java.io.IOException,
                                AutomationException
The name of the agent.

Specified by:
getName in interface INAAgent
Returns:
The agentName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

applies

public boolean applies(IDENetworkDataset network,
                       INAContextHelper contextHelper)
                throws java.io.IOException,
                       AutomationException
Indicates if the agent is appropriate to use with the given network dataset.

Specified by:
applies in interface INAAgent
Parameters:
network - A reference to a com.esri.arcgis.geodatabase.IDENetworkDataset (in)
contextHelper - A reference to a com.esri.arcgis.networkanalyst.INAContextHelper (in)
Returns:
The agentApplies
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

initialize

public void initialize(IDENetworkDataset network,
                       INAContextHelper contextHelper)
                throws java.io.IOException,
                       AutomationException
Get the agent ready for action.

Specified by:
initialize in interface INAAgent
Parameters:
network - A reference to a com.esri.arcgis.geodatabase.IDENetworkDataset (in)
contextHelper - A reference to a com.esri.arcgis.networkanalyst.INAContextHelper (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onResultUpdated

public void onResultUpdated()
                     throws java.io.IOException,
                            AutomationException
Called when a result is updated.

Specified by:
onResultUpdated in interface INAAgent
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onContextUpdated

public void onContextUpdated()
                      throws java.io.IOException,
                             AutomationException
Called when the context is updated.

Specified by:
onContextUpdated in interface INAAgent
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLengthUnits

public int getLengthUnits()
                   throws java.io.IOException,
                          AutomationException
The length units.

Specified by:
getLengthUnits in interface INACompactStreetDirectionsAgent
Returns:
A com.esri.arcgis.geodatabase.esriNetworkAttributeUnits constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLengthUnits

public void setLengthUnits(int units)
                    throws java.io.IOException,
                           AutomationException
The length units.

Specified by:
setLengthUnits in interface INACompactStreetDirectionsAgent
Parameters:
units - A com.esri.arcgis.geodatabase.esriNetworkAttributeUnits constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTimeAttributeName

public java.lang.String getTimeAttributeName()
                                      throws java.io.IOException,
                                             AutomationException
The network attribute for time calculation.

Specified by:
getTimeAttributeName in interface INACompactStreetDirectionsAgent
Returns:
The name
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTimeAttributeName

public void setTimeAttributeName(java.lang.String name)
                          throws java.io.IOException,
                                 AutomationException
The network attribute for time calculation.

Specified by:
setTimeAttributeName in interface INACompactStreetDirectionsAgent
Parameters:
name - The name (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLanguage

public java.lang.String getLanguage()
                             throws java.io.IOException,
                                    AutomationException
Language to use when generating directions.

Specified by:
getLanguage in interface INACompactStreetDirectionsAgent
Returns:
The strLanguage
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLanguage

public void setLanguage(java.lang.String strLanguage)
                 throws java.io.IOException,
                        AutomationException
Language to use when generating directions.

Specified by:
setLanguage in interface INACompactStreetDirectionsAgent
Parameters:
strLanguage - The strLanguage (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDirectionsContainer

public INACompactStreetDirectionsContainer getDirectionsContainer()
                                                           throws java.io.IOException,
                                                                  AutomationException
The container for the directions.

Specified by:
getDirectionsContainer in interface INACompactStreetDirectionsAgent
Returns:
A reference to a com.esri.arcgis.networkanalyst.INACompactStreetDirectionsContainer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

execute

public void execute(ISet set,
                    ITrackCancel trackCancel)
             throws java.io.IOException,
                    AutomationException
Constructs the directions.

Specified by:
execute in interface INACompactStreetDirectionsAgent
Parameters:
set - A reference to a com.esri.arcgis.system.ISet (in)
trackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getOutputSpatialReference

public ISpatialReference getOutputSpatialReference()
                                            throws java.io.IOException,
                                                   AutomationException
Output spatial reference to use for geometries returned by the directions objects.

Specified by:
getOutputSpatialReference in interface INACompactStreetDirectionsAgent2
Returns:
A reference to a com.esri.arcgis.geometry.ISpatialReference
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setOutputSpatialReferenceByRef

public void setOutputSpatialReferenceByRef(ISpatialReference ppSpatialReference)
                                    throws java.io.IOException,
                                           AutomationException
Output spatial reference to use for geometries returned by the directions objects.

Specified by:
setOutputSpatialReferenceByRef in interface INACompactStreetDirectionsAgent2
Parameters:
ppSpatialReference - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSupportedLanguages

public IStringArray getSupportedLanguages()
                                   throws java.io.IOException,
                                          AutomationException
The collection of languages supported by the agent.

Specified by:
getSupportedLanguages in interface INACompactStreetDirectionsAgent2
Returns:
A reference to a com.esri.arcgis.system.IStringArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAvailableStyleNames

public IStringArray getAvailableStyleNames()
                                    throws java.io.IOException,
                                           AutomationException
The collection of style names supported by the agent.

Specified by:
getAvailableStyleNames in interface INACompactStreetDirectionsAgent2
Returns:
A reference to a com.esri.arcgis.system.IStringArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getStyleName

public java.lang.String getStyleName()
                              throws java.io.IOException,
                                     AutomationException
Style name to use when generating directions.

Specified by:
getStyleName in interface INACompactStreetDirectionsAgent2
Returns:
The pStyleName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setStyleName

public void setStyleName(java.lang.String pStyleName)
                  throws java.io.IOException,
                         AutomationException
Style name to use when generating directions.

Specified by:
setStyleName in interface INACompactStreetDirectionsAgent2
Parameters:
pStyleName - The pStyleName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getOutputType

public int getOutputType()
                  throws java.io.IOException,
                         AutomationException
Output type to use when generating directions.

Specified by:
getOutputType in interface INACompactStreetDirectionsAgent2
Returns:
A com.esri.arcgis.networkanalyst.esriDirectionsOutputType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setOutputType

public void setOutputType(int pOutputType)
                   throws java.io.IOException,
                          AutomationException
Output type to use when generating directions.

Specified by:
setOutputType in interface INACompactStreetDirectionsAgent2
Parameters:
pOutputType - A com.esri.arcgis.networkanalyst.esriDirectionsOutputType constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClassID

public void getClassID(GUID[] pClassID)
                throws java.io.IOException,
                       AutomationException
getClassID

Specified by:
getClassID in interface IPersist
Parameters:
pClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isDirty

public void isDirty()
             throws java.io.IOException,
                    AutomationException
isDirty

Specified by:
isDirty in interface IPersistStream
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

load

public void load(IStream pstm)
          throws java.io.IOException,
                 AutomationException
load

Specified by:
load in interface IPersistStream
Parameters:
pstm - A reference to a com.esri.arcgis.system.IStream (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

save

public void save(IStream pstm,
                 int fClearDirty)
          throws java.io.IOException,
                 AutomationException
save

Specified by:
save in interface IPersistStream
Parameters:
pstm - A reference to a com.esri.arcgis.system.IStream (in)
fClearDirty - The fClearDirty (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSizeMax

public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
                throws java.io.IOException,
                       AutomationException
getSizeMax

Specified by:
getSizeMax in interface IPersistStream
Parameters:
pcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

serialize

public void serialize(IXMLSerializeData data)
               throws java.io.IOException,
                      AutomationException
Serializes an object to XML.

Specified by:
serialize in interface IXMLSerialize
Parameters:
data - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deserialize

public void deserialize(IXMLSerializeData data)
                 throws java.io.IOException,
                        AutomationException
Deserializes an object from XML.

Specified by:
deserialize in interface IXMLSerialize
Parameters:
data - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException