|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INAStreetDirectionsAgent
Provides access to the Directions Agent.
INAStreetDirectionsAgent has been superseded by INAStreetDirectionsAgent3.
Method Summary | |
---|---|
void |
execute(ISet set,
ITrackCancel trackCancel)
Constructs the directions. |
INAStreetDirectionsContainer |
getDirectionsContainer()
The container for the directions. |
int |
getLengthUnits()
The length units. |
String |
getTimeAttributeName()
The network attribute for time calculation. |
boolean |
isAutoShowDirections()
Indicates if directions are automatically updated and shown when a route changes. |
boolean |
isDisplayTime()
Indicates if time is displayed in directions. |
void |
setAutoShowDirections(boolean show)
Indicates if directions are automatically updated and shown when a route changes. |
void |
setDisplayTime(boolean display)
Indicates if time is displayed in directions. |
void |
setLengthUnits(int units)
The length units. |
void |
setTimeAttributeName(String name)
The network attribute for time calculation. |
Method Detail |
---|
int getLengthUnits() throws IOException, AutomationException
LengthUnits specifies the length units of the directions in esriNetworkAttributeUnits. The currently supported length units for this property are esriNAUMiles, esriNAUKilometers, esriNAUMeters, esriNAUYards, and esriNAUFeet.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLengthUnits(int units) throws IOException, AutomationException
units
- A com.esri.arcgis.geodatabase.esriNetworkAttributeUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isDisplayTime() throws IOException, AutomationException
DisplayTime indicates if the direction driving time should be displayed or not.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDisplayTime(boolean display) throws IOException, AutomationException
DisplayTime indicates if the direction driving time should be displayed or not.
display
- The display (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getTimeAttributeName() throws IOException, AutomationException
TimeAttributeName specifies the name of the time cost attribute used by directions.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTimeAttributeName(String name) throws IOException, AutomationException
TimeAttributeName specifies the name of the time cost attribute used by directions.
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isAutoShowDirections() throws IOException, AutomationException
AutoShowDirections indicates if the NADirectionsWindow is shown automatically after a route is solved.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAutoShowDirections(boolean show) throws IOException, AutomationException
AutoShowDirections indicates if the NADirectionsWindow will be shown automatically after a route is solved or not.
show
- The show (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.INAStreetDirectionsContainer getDirectionsContainer() throws IOException, AutomationException
DirectionsContainer provides access to the directions contents and a method to save the contents in a file in XML format.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void execute(ISet set, ITrackCancel trackCancel) throws IOException, AutomationException
Execute is a method to compute the driving directions. This method takes a set containing the route features that you want to generate directions for. If null is passed in, it will generate directions for all routes. If you want to generate directions for a subset of the routes, create a new set object and add route features from the corresponding Routes or CFRoutes network analysis class.
set
- A reference to a com.esri.arcgis.system.ISet (in)trackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (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 |