com.esri.arcgis.networkanalyst
Class INAStreetDirectionProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.networkanalyst.INAStreetDirectionProxy
All Implemented Interfaces:
INAStreetDirection, Externalizable, Serializable
Direct Known Subclasses:
INAStreetDirection2Proxy

public class INAStreetDirectionProxy
extends com.esri.arcgis.interop.Dispatch
implements INAStreetDirection, Serializable

Provides access to a street direction item.

Superseded By

INAStreetDirection2

Remarks

INAStreetDirection has been superseded by INAStreetDirection3.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  INAStreetDirectionProxy()
           
  INAStreetDirectionProxy(Object obj)
           
protected INAStreetDirectionProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 double getDriveTime()
          The driving time.
 IEnvelope getEnvelope()
          The bounding box of the item.
 double getLength()
          The driving Length (in directions length units).
 IPoint getManeuverPoint()
          The maneuver point of the item.
 INATraversalResultElement getResultElement(int index)
          The result object by index.
 int getResultObjectCount()
          The number of result objects that belong to this direction.
 String getString(int index)
          The direction string by its index.
 int getStringCount()
          The count of direction strings in this item.
 int getStringType(int index)
          The direction string type by its index.
 double getTime()
          The time spent.
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

INAStreetDirectionProxy

public INAStreetDirectionProxy()

INAStreetDirectionProxy

public INAStreetDirectionProxy(Object obj)
                        throws IOException
Throws:
IOException

INAStreetDirectionProxy

protected INAStreetDirectionProxy(Object obj,
                                  String iid)
                           throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

getStringCount

public int getStringCount()
                   throws IOException,
                          AutomationException
The count of direction strings in this item.

Remarks

StringCount returns the number of direction elements.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getStringCount in interface INAStreetDirection
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getString

public String getString(int index)
                 throws IOException,
                        AutomationException
The direction string by its index.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getString in interface INAStreetDirection
Parameters:
index - The index (in)
Returns:
The directionString
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getStringType

public int getStringType(int index)
                  throws IOException,
                         AutomationException
The direction string type by its index.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getStringType in interface INAStreetDirection
Parameters:
index - The index (in)
Returns:
A com.esri.arcgis.networkanalyst.esriDirectionsStringType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLength

public double getLength()
                 throws IOException,
                        AutomationException
The driving Length (in directions length units).

Remarks

Length returns the length of the particular direction element.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getLength in interface INAStreetDirection
Returns:
The length
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTime

public double getTime()
               throws IOException,
                      AutomationException
The time spent.

Remarks

Time returns the travel time of the particular direction element.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getTime in interface INAStreetDirection
Returns:
The time
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDriveTime

public double getDriveTime()
                    throws IOException,
                           AutomationException
The driving time.

Remarks

DriveTime returns the driving time of the particular direction element.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getDriveTime in interface INAStreetDirection
Returns:
The time
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getEnvelope

public IEnvelope getEnvelope()
                      throws IOException,
                             AutomationException
The bounding box of the item.

Remarks

Envelope returns the geographic envelope of the direction.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getEnvelope in interface INAStreetDirection
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getManeuverPoint

public IPoint getManeuverPoint()
                        throws IOException,
                               AutomationException
The maneuver point of the item.

Remarks

ManeuverPoint returns the point of the turn of the direction.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getManeuverPoint in interface INAStreetDirection
Returns:
A reference to a com.esri.arcgis.geometry.IPoint
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getResultObjectCount

public int getResultObjectCount()
                         throws IOException,
                                AutomationException
The number of result objects that belong to this direction.

Remarks

ResultObjectCount returns the number of traversal result elements associated with the direction element.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getResultObjectCount in interface INAStreetDirection
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getResultElement

public INATraversalResultElement getResultElement(int index)
                                           throws IOException,
                                                  AutomationException
The result object by index.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getResultElement in interface INAStreetDirection
Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.networkanalyst.INATraversalResultElement
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.