|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INetworkDirections
Provides access to the properties for setting up driving directions.
The INetworkDirections interface should be used to get and set Directions information at the network dataset level, such as the output length units or length attribute to be used for Directions generation. In order to generate directions a network dataset needs certain information which includes:
The length attribute and units parameters are set on the INetworkDirections interface.
Method Summary | |
---|---|
int |
getDefaultOutputLengthUnits()
The default length units that will be used for reporting distances in driving directions. |
String |
getLengthAttributeName()
The name of the network attribute to be used for reporting travel distances. |
String |
getRoadClassAttributeName()
The name of the network attribute to be used for road classification. |
String |
getTimeAttributeName()
The name of the network attribute to be used for reporting travel time. |
void |
setDefaultOutputLengthUnits(int units)
The default length units that will be used for reporting distances in driving directions. |
void |
setLengthAttributeName(String name)
The name of the network attribute to be used for reporting travel distances. |
void |
setRoadClassAttributeName(String name)
The name of the network attribute to be used for road classification. |
void |
setTimeAttributeName(String name)
The name of the network attribute to be used for reporting travel time. |
Method Detail |
---|
int getDefaultOutputLengthUnits() throws IOException, AutomationException
The DefaultOutputLengthUnits that will be used for generating directions. This property is required for Direction generation.
The valid values are: esriNAUMiles, esriNAUKilometers, esriNAUMeters, esriNAUYards, and esriNAUFeet from the esriNetworkAttributeUnits enumeration.
This value does not have to correspond to the units specified for the LengthAttributeName property.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultOutputLengthUnits(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.String getLengthAttributeName() throws IOException, AutomationException
The LengthAttributeName property is the attribute that will be used for distance measurements. The attribute must have a units value from the esriNetworkAttributeUnits enumeration that corresponds to a distance measurement and must be a Cost attribute. This does not have to be same value as specified in the DefaultOutputLengthUnits property. This property is required for Direction generation.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLengthAttributeName(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getTimeAttributeName() throws IOException, AutomationException
The TimeAttributeName property is the attribute that will be used for time measurements. The attribute must have a units value from the esriNetworkAttributeUnits enumeration that corresponds to a unit of time and must be a Cost attribute.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTimeAttributeName(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getRoadClassAttributeName() throws IOException, AutomationException
The RoadClassAttributeName property is the attribute that will be used for identifying different classes of roads in direction generation. The attribute must be of usage type: esriNAUTDescriptor and of data type: esriNADTInteger.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setRoadClassAttributeName(String name) throws IOException, AutomationException
name
- The name (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 |