com.esri.arcgis.geoprocessing.tools.networkanalysttools
Class Directions

java.lang.Object
  extended by com.esri.arcgis.geoprocessing.AbstractGPTool
      extended by com.esri.arcgis.geoprocessing.tools.networkanalysttools.Directions
All Implemented Interfaces:
GPTool

public class Directions
extends AbstractGPTool

Generates direction information from a network analysis layer with routes. The direction information is written to a file in either XML or text format. The Directions tool is contained in the Network Analyst Tools tool box.

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
Directions()
          Creates the Directions tool with defaults.
Directions(Object inNetworkAnalysisLayer, String fileType, Object outDirectionsFile, String reportUnits)
          Creates the Directions tool with the required parameters.
 
Method Summary
 String getFileType()
          Returns the Output file type parameter of this tool .
 Object getInNetworkAnalysisLayer()
          Returns the Input network analysis layer parameter of this tool .
 Object getOutDirectionsFile()
          Returns the Output directions file parameter of this tool .
 Object getOutputLayer()
          Returns the Network Analyst Layer parameter of this tool (Read only).
 String getReportTime()
          Returns the Report travel time parameter of this tool .
 String getReportUnits()
          Returns the Report length in these units parameter of this tool .
 String getTimeAttribute()
          Returns the Time attribute parameter of this tool .
 String getToolboxAlias()
          Returns the alias of the tool box containing this tool.
 String getToolboxName()
          Returns the name of the tool box containing this tool.
 String getToolName()
          Returns the name of this tool.
 void setFileType(String fileType)
          Sets the Output file type parameter of this tool .
 void setInNetworkAnalysisLayer(Object inNetworkAnalysisLayer)
          Sets the Input network analysis layer parameter of this tool .
 void setOutDirectionsFile(Object outDirectionsFile)
          Sets the Output directions file parameter of this tool .
 void setReportTime(String reportTime)
          Sets the Report travel time parameter of this tool .
 void setReportUnits(String reportUnits)
          Sets the Report length in these units parameter of this tool .
 void setTimeAttribute(String timeAttribute)
          Sets the Time attribute parameter of this tool .
 
Methods inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
getParameterValues, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Directions

public Directions()
Creates the Directions tool with defaults.

Initializes the array of tool parameters with the default values specified when the tool was created.


Directions

public Directions(Object inNetworkAnalysisLayer,
                  String fileType,
                  Object outDirectionsFile,
                  String reportUnits)
Creates the Directions tool with the required parameters.

Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.

Parameters:
inNetworkAnalysisLayer - network analysis layer from which directions will be generated. Directions can be generated only for the Route, Closest Facility, and Vehicle Routing Problem network analysis layers.
fileType - the format of the output directions file.
outDirectionsFile - the full pathname to the directions file that will be written.
reportUnits - specifies the linear units in which the length information will be reported in the directions file. For example, even though your impedance was in meters, you can show directions in miles.
Method Detail

getInNetworkAnalysisLayer

public Object getInNetworkAnalysisLayer()
Returns the Input network analysis layer parameter of this tool . This parameter is network analysis layer from which directions will be generated. Directions can be generated only for the Route, Closest Facility, and Vehicle Routing Problem network analysis layers. This is a required parameter.

Returns:
the Input network analysis layer

setInNetworkAnalysisLayer

public void setInNetworkAnalysisLayer(Object inNetworkAnalysisLayer)
Sets the Input network analysis layer parameter of this tool . This parameter is network analysis layer from which directions will be generated. Directions can be generated only for the Route, Closest Facility, and Vehicle Routing Problem network analysis layers. This is a required parameter.

Parameters:
inNetworkAnalysisLayer - network analysis layer from which directions will be generated. Directions can be generated only for the Route, Closest Facility, and Vehicle Routing Problem network analysis layers.

getFileType

public String getFileType()
Returns the Output file type parameter of this tool . This parameter is the format of the output directions file. This is a required parameter.

Returns:
the Output file type

setFileType

public void setFileType(String fileType)
Sets the Output file type parameter of this tool . This parameter is the format of the output directions file. This is a required parameter.

Parameters:
fileType - the format of the output directions file.

getOutDirectionsFile

public Object getOutDirectionsFile()
Returns the Output directions file parameter of this tool . This parameter is the full pathname to the directions file that will be written. This is a required parameter.

Returns:
the Output directions file

setOutDirectionsFile

public void setOutDirectionsFile(Object outDirectionsFile)
Sets the Output directions file parameter of this tool . This parameter is the full pathname to the directions file that will be written. This is a required parameter.

Parameters:
outDirectionsFile - the full pathname to the directions file that will be written.

getReportUnits

public String getReportUnits()
Returns the Report length in these units parameter of this tool . This parameter is specifies the linear units in which the length information will be reported in the directions file. For example, even though your impedance was in meters, you can show directions in miles. This is a required parameter.

Returns:
the Report length in these units

setReportUnits

public void setReportUnits(String reportUnits)
Sets the Report length in these units parameter of this tool . This parameter is specifies the linear units in which the length information will be reported in the directions file. For example, even though your impedance was in meters, you can show directions in miles. This is a required parameter.

Parameters:
reportUnits - specifies the linear units in which the length information will be reported in the directions file. For example, even though your impedance was in meters, you can show directions in miles.

getReportTime

public String getReportTime()
Returns the Report travel time parameter of this tool . This is an optional parameter.

Returns:
the Report travel time

setReportTime

public void setReportTime(String reportTime)
Sets the Report travel time parameter of this tool . This is an optional parameter.

Parameters:
reportTime - null

getTimeAttribute

public String getTimeAttribute()
Returns the Time attribute parameter of this tool . This parameter is the time-based cost attribute providing the travel times in the directions. The cost attribute must exist on the network dataset used by the input network analysis layer. This is an optional parameter.

Returns:
the Time attribute

setTimeAttribute

public void setTimeAttribute(String timeAttribute)
Sets the Time attribute parameter of this tool . This parameter is the time-based cost attribute providing the travel times in the directions. The cost attribute must exist on the network dataset used by the input network analysis layer. This is an optional parameter.

Parameters:
timeAttribute - the time-based cost attribute providing the travel times in the directions. The cost attribute must exist on the network dataset used by the input network analysis layer.

getOutputLayer

public Object getOutputLayer()
Returns the Network Analyst Layer parameter of this tool (Read only). This is an derived parameter.

Returns:
the Network Analyst Layer

getToolName

public String getToolName()
Returns the name of this tool.

Returns:
the tool name

getToolboxName

public String getToolboxName()
Returns the name of the tool box containing this tool.

Returns:
the tool box name

getToolboxAlias

public String getToolboxAlias()
Returns the alias of the tool box containing this tool.

Returns:
the tool box alias