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

java.lang.Object
  extended bycom.esri.arcgis.geoprocessing.AbstractGPTool
      extended bycom.esri.arcgis.geoprocessing.tools.networkanalysttools.AddLocations
All Implemented Interfaces:
GPTool

public class AddLocations
extends AbstractGPTool

Adds network locations to a network analysis layer. The Add Locations tool is contained in the Network Analyst Tools tool box.

Software restrictions: none

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
AddLocations()
          Creates the Add Locations tool with defaults.
AddLocations(java.lang.Object inNetworkAnalysisLayer, java.lang.String subLayer, java.lang.Object inTable, java.lang.Object fieldMappings, java.lang.Object searchTolerance)
          Creates the Add Locations tool with the required parameters.
 
Method Summary
 java.lang.String getAppend()
          Returns the Append to existing locations parameter of this tool .
 java.lang.Object getFieldMappings()
          Returns the Field mappings parameter of this tool .
 java.lang.Object getInNetworkAnalysisLayer()
          Returns the Input network analysis layer parameter of this tool .
 java.lang.Object getInTable()
          Returns the Input locations parameter of this tool .
 java.lang.String getMatchType()
          Returns the Find closest among all classes parameter of this tool .
 java.lang.Object getOutputLayer()
          Returns the Network Analyst Layer parameter of this tool (Read only).
 java.lang.Object getSearchCriteria()
          Returns the Search criteria parameter of this tool .
 java.lang.Object getSearchTolerance()
          Returns the Search tolerance parameter of this tool .
 java.lang.Object getSnapOffset()
          Returns the Snap Offset parameter of this tool .
 java.lang.String getSnapToPositionAlongNetwork()
          Returns the Snap to Network parameter of this tool .
 java.lang.Object getSortField()
          Returns the Sort field parameter of this tool .
 java.lang.String getSubLayer()
          Returns the Sub layer parameter of this tool .
 java.lang.String getToolboxAlias()
          Returns the alias of the tool box containing this tool.
 java.lang.String getToolboxName()
          Returns the name of the tool box containing this tool.
 java.lang.String getToolName()
          Returns the name of this tool.
 void setAppend(java.lang.String append)
          Sets the Append to existing locations parameter of this tool .
 void setFieldMappings(java.lang.Object fieldMappings)
          Sets the Field mappings parameter of this tool .
 void setInNetworkAnalysisLayer(java.lang.Object inNetworkAnalysisLayer)
          Sets the Input network analysis layer parameter of this tool .
 void setInTable(java.lang.Object inTable)
          Sets the Input locations parameter of this tool .
 void setMatchType(java.lang.String matchType)
          Sets the Find closest among all classes parameter of this tool .
 void setSearchCriteria(java.lang.Object searchCriteria)
          Sets the Search criteria parameter of this tool .
 void setSearchTolerance(java.lang.Object searchTolerance)
          Sets the Search tolerance parameter of this tool .
 void setSnapOffset(java.lang.Object snapOffset)
          Sets the Snap Offset parameter of this tool .
 void setSnapToPositionAlongNetwork(java.lang.String snapToPositionAlongNetwork)
          Sets the Snap to Network parameter of this tool .
 void setSortField(java.lang.Object sortField)
          Sets the Sort field parameter of this tool .
 void setSubLayer(java.lang.String subLayer)
          Sets the Sub layer 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

AddLocations

public AddLocations()
Creates the Add Locations tool with defaults.

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


AddLocations

public AddLocations(java.lang.Object inNetworkAnalysisLayer,
                    java.lang.String subLayer,
                    java.lang.Object inTable,
                    java.lang.Object fieldMappings,
                    java.lang.Object searchTolerance)
Creates the Add Locations 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 Analyst Layer, network analysis layer to which network locations will be added.
subLayer - String, adds network locations to the selected sublayer of the input network analysis layer.
inTable - Table View, the feature class or layer that is the source for the new network locations.
fieldMappings - Network Analyst Field Map, sets the values for the properties of the network locations. Properties can be set to a constant or mapped to a field on the input feature class.
searchTolerance - Linear Unit, the search tolerance for locating the input features on the network. The parameter includes a value and units for the tolerance.
Method Detail

getInNetworkAnalysisLayer

public java.lang.Object getInNetworkAnalysisLayer()
Returns the Input network analysis layer parameter of this tool . This parameter is Network Analyst Layer, network analysis layer to which network locations will be added. This is a required parameter.

Returns:
the Input network analysis layer

setInNetworkAnalysisLayer

public void setInNetworkAnalysisLayer(java.lang.Object inNetworkAnalysisLayer)
Sets the Input network analysis layer parameter of this tool . This parameter is Network Analyst Layer, network analysis layer to which network locations will be added. This is a required parameter.

Parameters:
inNetworkAnalysisLayer - Network Analyst Layer, network analysis layer to which network locations will be added.

getSubLayer

public java.lang.String getSubLayer()
Returns the Sub layer parameter of this tool . This parameter is String, adds network locations to the selected sublayer of the input network analysis layer. This is a required parameter.

Returns:
the Sub layer

setSubLayer

public void setSubLayer(java.lang.String subLayer)
Sets the Sub layer parameter of this tool . This parameter is String, adds network locations to the selected sublayer of the input network analysis layer. This is a required parameter.

Parameters:
subLayer - String, adds network locations to the selected sublayer of the input network analysis layer.

getInTable

public java.lang.Object getInTable()
Returns the Input locations parameter of this tool . This parameter is Table View, the feature class or layer that is the source for the new network locations. This is a required parameter.

Returns:
the Input locations

setInTable

public void setInTable(java.lang.Object inTable)
Sets the Input locations parameter of this tool . This parameter is Table View, the feature class or layer that is the source for the new network locations. This is a required parameter.

Parameters:
inTable - Table View, the feature class or layer that is the source for the new network locations.

getFieldMappings

public java.lang.Object getFieldMappings()
Returns the Field mappings parameter of this tool . This parameter is Network Analyst Field Map, sets the values for the properties of the network locations. Properties can be set to a constant or mapped to a field on the input feature class. This is a required parameter.

Returns:
the Field mappings

setFieldMappings

public void setFieldMappings(java.lang.Object fieldMappings)
Sets the Field mappings parameter of this tool . This parameter is Network Analyst Field Map, sets the values for the properties of the network locations. Properties can be set to a constant or mapped to a field on the input feature class. This is a required parameter.

Parameters:
fieldMappings - Network Analyst Field Map, sets the values for the properties of the network locations. Properties can be set to a constant or mapped to a field on the input feature class.

getSearchTolerance

public java.lang.Object getSearchTolerance()
Returns the Search tolerance parameter of this tool . This parameter is Linear Unit, the search tolerance for locating the input features on the network. The parameter includes a value and units for the tolerance. This is a required parameter.

Returns:
the Search tolerance

setSearchTolerance

public void setSearchTolerance(java.lang.Object searchTolerance)
Sets the Search tolerance parameter of this tool . This parameter is Linear Unit, the search tolerance for locating the input features on the network. The parameter includes a value and units for the tolerance. This is a required parameter.

Parameters:
searchTolerance - Linear Unit, the search tolerance for locating the input features on the network. The parameter includes a value and units for the tolerance.

getSortField

public java.lang.Object getSortField()
Returns the Sort field parameter of this tool . This parameter is Field, a field in which to sort the locations as they are added to the network analysis layer. This is an optional parameter.

Returns:
the Sort field

setSortField

public void setSortField(java.lang.Object sortField)
Sets the Sort field parameter of this tool . This parameter is Field, a field in which to sort the locations as they are added to the network analysis layer. This is an optional parameter.

Parameters:
sortField - Field, a field in which to sort the locations as they are added to the network analysis layer.

getSearchCriteria

public java.lang.Object getSearchCriteria()
Returns the Search criteria parameter of this tool . This parameter is String, allows you to specify which sources in your network dataset will be searched when finding locations, as well as specifying what portions of geometry will be used. This is an optional parameter.

Returns:
the Search criteria

setSearchCriteria

public void setSearchCriteria(java.lang.Object searchCriteria)
Sets the Search criteria parameter of this tool . This parameter is String, allows you to specify which sources in your network dataset will be searched when finding locations, as well as specifying what portions of geometry will be used. This is an optional parameter.

Parameters:
searchCriteria - String, allows you to specify which sources in your network dataset will be searched when finding locations, as well as specifying what portions of geometry will be used.

getMatchType

public java.lang.String getMatchType()
Returns the Find closest among all classes parameter of this tool . This parameter is String, specifies whether or not to match new network locations to the closest element of any class in the network analysis layer This is an optional parameter.

Returns:
the Find closest among all classes

setMatchType

public void setMatchType(java.lang.String matchType)
Sets the Find closest among all classes parameter of this tool . This parameter is String, specifies whether or not to match new network locations to the closest element of any class in the network analysis layer This is an optional parameter.

Parameters:
matchType - String, specifies whether or not to match new network locations to the closest element of any class in the network analysis layer
  • MATCH_TO_CLOSEST—Matches the locations to the closest element of any class in the network analysis layer
  • PRIORITY—Matches the location to classes in priority order

getAppend

public java.lang.String getAppend()
Returns the Append to existing locations parameter of this tool . This parameter is String, specifies whether or not to append new network locations to existing locations. This is an optional parameter.

Returns:
the Append to existing locations

setAppend

public void setAppend(java.lang.String append)
Sets the Append to existing locations parameter of this tool . This parameter is String, specifies whether or not to append new network locations to existing locations. This is an optional parameter.

Parameters:
append - String, specifies whether or not to append new network locations to existing locations.
  • APPEND—Adds the new network locations to the existing set of locations in the selected sublayer.
  • CLEAR—Deletes the existing locations and replaces them with the new network locations.

getSnapToPositionAlongNetwork

public java.lang.String getSnapToPositionAlongNetwork()
Returns the Snap to Network parameter of this tool . This is an optional parameter.

Returns:
the Snap to Network

setSnapToPositionAlongNetwork

public void setSnapToPositionAlongNetwork(java.lang.String snapToPositionAlongNetwork)
Sets the Snap to Network parameter of this tool . This is an optional parameter.

Parameters:
snapToPositionAlongNetwork - null

getSnapOffset

public java.lang.Object getSnapOffset()
Returns the Snap Offset parameter of this tool . This is an optional parameter.

Returns:
the Snap Offset

setSnapOffset

public void setSnapOffset(java.lang.Object snapOffset)
Sets the Snap Offset parameter of this tool . This is an optional parameter.

Parameters:
snapOffset - null

getOutputLayer

public java.lang.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 java.lang.String getToolName()
Returns the name of this tool.

Returns:
the tool name

getToolboxName

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

Returns:
the tool box name

getToolboxAlias

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

Returns:
the tool box alias