com.esri.arcgis.geoprocessing.tools.spatialanalysttools
Class FlowAccumulation

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

public class FlowAccumulation
extends AbstractGPTool

Creates a raster of accumulated flow into each cell. A weight factor can optionally be applied. The Flow Accumulation tool is contained in the Spatial Analyst Tools tool box.

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
FlowAccumulation()
          Creates the Flow Accumulation tool with defaults.
FlowAccumulation(Object inFlowDirectionRaster, Object outAccumulationRaster)
          Creates the Flow Accumulation tool with the required parameters.
 
Method Summary
 String getDataType()
          Returns the Output data type parameter of this tool .
 Object getInFlowDirectionRaster()
          Returns the Input flow direction raster parameter of this tool .
 Object getInWeightRaster()
          Returns the Input weight raster parameter of this tool .
 Object getOutAccumulationRaster()
          Returns the Output accumulation raster 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 setDataType(String dataType)
          Sets the Output data type parameter of this tool .
 void setInFlowDirectionRaster(Object inFlowDirectionRaster)
          Sets the Input flow direction raster parameter of this tool .
 void setInWeightRaster(Object inWeightRaster)
          Sets the Input weight raster parameter of this tool .
 void setOutAccumulationRaster(Object outAccumulationRaster)
          Sets the Output accumulation raster 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

FlowAccumulation

public FlowAccumulation()
Creates the Flow Accumulation tool with defaults.

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


FlowAccumulation

public FlowAccumulation(Object inFlowDirectionRaster,
                        Object outAccumulationRaster)
Creates the Flow Accumulation 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:
inFlowDirectionRaster - the input raster that shows the direction of flow out of each cell. the flow direction raster can be created using the Flow Direction tool.
outAccumulationRaster - the output raster that shows the accumulated flow to each cell.
Method Detail

getInFlowDirectionRaster

public Object getInFlowDirectionRaster()
Returns the Input flow direction raster parameter of this tool . This parameter is the input raster that shows the direction of flow out of each cell. the flow direction raster can be created using the Flow Direction tool. This is a required parameter.

Returns:
the Input flow direction raster

setInFlowDirectionRaster

public void setInFlowDirectionRaster(Object inFlowDirectionRaster)
Sets the Input flow direction raster parameter of this tool . This parameter is the input raster that shows the direction of flow out of each cell. the flow direction raster can be created using the Flow Direction tool. This is a required parameter.

Parameters:
inFlowDirectionRaster - the input raster that shows the direction of flow out of each cell. the flow direction raster can be created using the Flow Direction tool.

getOutAccumulationRaster

public Object getOutAccumulationRaster()
Returns the Output accumulation raster parameter of this tool . This parameter is the output raster that shows the accumulated flow to each cell. This is a required parameter.

Returns:
the Output accumulation raster

setOutAccumulationRaster

public void setOutAccumulationRaster(Object outAccumulationRaster)
Sets the Output accumulation raster parameter of this tool . This parameter is the output raster that shows the accumulated flow to each cell. This is a required parameter.

Parameters:
outAccumulationRaster - the output raster that shows the accumulated flow to each cell.

getInWeightRaster

public Object getInWeightRaster()
Returns the Input weight raster parameter of this tool . This parameter is an optional input raster for applying a weight to each cell. if no weight raster is specified, a default weight of 1 will be applied to each cell. For each cell in the output raster, the result will be the number of cells that flow into it. This is an optional parameter.

Returns:
the Input weight raster

setInWeightRaster

public void setInWeightRaster(Object inWeightRaster)
Sets the Input weight raster parameter of this tool . This parameter is an optional input raster for applying a weight to each cell. if no weight raster is specified, a default weight of 1 will be applied to each cell. For each cell in the output raster, the result will be the number of cells that flow into it. This is an optional parameter.

Parameters:
inWeightRaster - an optional input raster for applying a weight to each cell. if no weight raster is specified, a default weight of 1 will be applied to each cell. For each cell in the output raster, the result will be the number of cells that flow into it.

getDataType

public String getDataType()
Returns the Output data type parameter of this tool . This parameter is the output accumulation raster can be integer or floating point type. This is an optional parameter.

Returns:
the Output data type

setDataType

public void setDataType(String dataType)
Sets the Output data type parameter of this tool . This parameter is the output accumulation raster can be integer or floating point type. This is an optional parameter.

Parameters:
dataType - the output accumulation raster can be integer or floating point type.

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