|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.datasourcesfile.SMDirections
public class SMDirections
Driving directions information including path geometry and description of each path segment.
Constructor Summary | |
---|---|
SMDirections(Object obj)
Construct a SMDirections using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
boolean |
equals(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. |
Date |
getTotalDrivingTime()
The total driving time for the route. |
double |
getTotalLength()
The total length of the route (in miles by default). |
String |
getTotalsText()
A string containing the total time and length of the route. |
Date |
getTotalTime()
The total time of the entire trip. |
int |
hashCode()
the hashcode for this object |
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 SMDirections(Object obj) throws IOException
obj
to SMDirections
. *
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
IOException
- if there are interop problems
SMDirections theSMDirections = (SMDirections) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public double getTotalLength() throws IOException, AutomationException
Returns total length (in miles) of the route found.
getTotalLength
in interface ISMDirections
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Date getTotalTime() throws IOException, AutomationException
Returns total time of the trip.
getTotalTime
in interface ISMDirections
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Date getTotalDrivingTime() throws IOException, AutomationException
Returns the total driving time for the route.
getTotalDrivingTime
in interface ISMDirections
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getTotalsText() throws IOException, AutomationException
Returns text string consisting of the total time and length of the route.
getTotalsText
in interface ISMDirections
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISMRouterEnvelope getBoundBox() throws IOException, AutomationException
Returns the geographic extent of the entire route path.
getBoundBox
in interface ISMDirections
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCount() throws IOException, AutomationException
Returns the number of items in the driving direction object.
getCount
in interface ISMDirections
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISMDirItem getItem(int position) throws IOException, AutomationException
getItem
in interface ISMDirections
position
- The position (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |