com.esri.arcgis.datasourcesfile
Class SMDirections

java.lang.Object
  extended by com.esri.arcgis.datasourcesfile.SMDirections
All Implemented Interfaces:
ISMDirections, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class SMDirections
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, ISMDirections

COM Class 'SMDirections'. Generated 3/19/2015 1:20:42 PM from 'C:\ArcGIS\COM\esriDataSourcesFile.olb'

Description 'Deprecated as of 10.1. Driving directions information including path geometry and description of each path segment.' 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
 
Fields inherited from interface com.esri.arcgis.datasourcesfile.ISMDirections
DISPID_3_GET_NAME, DISPID_4_GET_NAME, DISPID_5_GET_NAME, DISPID_6_GET_NAME, DISPID_7_GET_NAME, DISPID_8_GET_NAME, DISPID_9_GET_NAME, IID, IIDf8b6601d_5850_11d7_b321_008048db11de, xxDummy
 
Constructor Summary
SMDirections(java.lang.Object obj)
          Construct a SMDirections using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 ISMRouterEnvelope getBoundBox()
          The geographic extent of the entire route.
 int getCount()
          The total number of items in the driving directions object.
 ISMDirItem getItem(int position)
          A reference to a direction item by its position.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 java.util.Date getTotalDrivingTime()
          The total driving time for the route.
 double getTotalLength()
          The total length of the route (in miles by default).
 java.lang.String getTotalsText()
          A string containing the total time and length of the route.
 java.util.Date getTotalTime()
          The total time of the entire trip.
 int hashCode()
          the hashcode for this object
 void release()
          Release a SMDirections.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMDirections

public SMDirections(java.lang.Object obj)
             throws java.io.IOException
Construct a SMDirections using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to SMDirections.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
SMDirections o = (SMDirections)obj; // will not work

SMDirections o = new SMDirections(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
java.io.IOException - if there are interop problems SMDirections theSMDirections = (SMDirections) obj;
Method Detail

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 SMDirections.

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

getTotalLength

public double getTotalLength()
                      throws java.io.IOException,
                             AutomationException
The total length of the route (in miles by default).

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

getTotalTime

public java.util.Date getTotalTime()
                            throws java.io.IOException,
                                   AutomationException
The total time of the entire trip.

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

getTotalDrivingTime

public java.util.Date getTotalDrivingTime()
                                   throws java.io.IOException,
                                          AutomationException
The total driving time for the route.

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

getTotalsText

public java.lang.String getTotalsText()
                               throws java.io.IOException,
                                      AutomationException
A string containing the total time and length of the route.

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

getBoundBox

public ISMRouterEnvelope getBoundBox()
                              throws java.io.IOException,
                                     AutomationException
The geographic extent of the entire route.

Specified by:
getBoundBox in interface ISMDirections
Returns:
A reference to a com.esri.arcgis.datasourcesfile.ISMRouterEnvelope
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCount

public int getCount()
             throws java.io.IOException,
                    AutomationException
The total number of items in the driving directions object.

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

getItem

public ISMDirItem getItem(int position)
                   throws java.io.IOException,
                          AutomationException
A reference to a direction item by its position.

Specified by:
getItem in interface ISMDirections
Parameters:
position - The position (in)
Returns:
A reference to a com.esri.arcgis.datasourcesfile.ISMDirItem
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.