|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geoprocessing.AbstractGPTool com.esri.arcgis.geoprocessing.tools.networkanalysttools.MakeLocationAllocationLayer
public class MakeLocationAllocationLayer
Makes a location-allocation network analysis layer and sets its analysis properties. A location-allocation analysis layer is useful for choosing a given number of facilities from a set of potential locations such that a demand will be allocated to facilities in an optimal and efficient manner. The Make Location-Allocation Layer tool is contained in the Network Analyst Tools tool box.
Field Summary |
---|
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool |
---|
vals |
Constructor Summary | |
---|---|
MakeLocationAllocationLayer()
Creates the Make Location-Allocation Layer tool with defaults. |
|
MakeLocationAllocationLayer(Object inNetworkDataset,
String outNetworkAnalysisLayer,
String impedanceAttribute)
Creates the Make Location-Allocation Layer tool with the required parameters. |
Method Summary | |
---|---|
Object |
getAccumulateAttributeName()
Returns the Accumulators parameter of this tool . |
String |
getHierarchy()
Returns the Use hierarchy in analysis parameter of this tool . |
String |
getImpedanceAttribute()
Returns the Impedance attribute parameter of this tool . |
double |
getImpedanceCutoff()
Returns the Impedance cutoff parameter of this tool . |
double |
getImpedanceParameter()
Returns the Impedance parameter parameter of this tool . |
String |
getImpedanceTransformation()
Returns the Impedance transformation parameter of this tool . |
Object |
getInNetworkDataset()
Returns the Input analysis network parameter of this tool . |
String |
getLocAllocFromTo()
Returns the Travel from parameter of this tool . |
String |
getLocAllocProblemType()
Returns the Location-allocation problem type parameter of this tool . |
int |
getNumberFacilitiesToFind()
Returns the Number of facilities to find parameter of this tool . |
String |
getOutNetworkAnalysisLayer()
Returns the Output layer name parameter of this tool . |
Object |
getOutputLayer()
Returns the Network Analyst Layer parameter of this tool (Read only). |
String |
getOutputPathShape()
Returns the Output path shape parameter of this tool . |
Object |
getRestrictionAttributeName()
Returns the Restrictions parameter of this tool . |
double |
getTargetMarketShare()
Returns the Target market share 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. |
String |
getUTurnPolicy()
Returns the U-turn policy parameter of this tool . |
void |
setAccumulateAttributeName(Object accumulateAttributeName)
Sets the Accumulators parameter of this tool . |
void |
setHierarchy(String hierarchy)
Sets the Use hierarchy in analysis parameter of this tool . |
void |
setImpedanceAttribute(String impedanceAttribute)
Sets the Impedance attribute parameter of this tool . |
void |
setImpedanceCutoff(double impedanceCutoff)
Sets the Impedance cutoff parameter of this tool . |
void |
setImpedanceParameter(double impedanceParameter)
Sets the Impedance parameter parameter of this tool . |
void |
setImpedanceTransformation(String impedanceTransformation)
Sets the Impedance transformation parameter of this tool . |
void |
setInNetworkDataset(Object inNetworkDataset)
Sets the Input analysis network parameter of this tool . |
void |
setLocAllocFromTo(String locAllocFromTo)
Sets the Travel from parameter of this tool . |
void |
setLocAllocProblemType(String locAllocProblemType)
Sets the Location-allocation problem type parameter of this tool . |
void |
setNumberFacilitiesToFind(int numberFacilitiesToFind)
Sets the Number of facilities to find parameter of this tool . |
void |
setOutNetworkAnalysisLayer(String outNetworkAnalysisLayer)
Sets the Output layer name parameter of this tool . |
void |
setOutputPathShape(String outputPathShape)
Sets the Output path shape parameter of this tool . |
void |
setRestrictionAttributeName(Object restrictionAttributeName)
Sets the Restrictions parameter of this tool . |
void |
setTargetMarketShare(double targetMarketShare)
Sets the Target market share parameter of this tool . |
void |
setUTurnPolicy(String uTurnPolicy)
Sets the U-turn policy 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 |
---|
public MakeLocationAllocationLayer()
Initializes the array of tool parameters with the default values specified when the tool was created.
public MakeLocationAllocationLayer(Object inNetworkDataset, String outNetworkAnalysisLayer, String impedanceAttribute)
Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.
inNetworkDataset
- the network dataset on which the location-allocation analysis will be performed.outNetworkAnalysisLayer
- name of the location-allocation network analysis layer to create.impedanceAttribute
- the cost attribute to be used as impedance in the analysis.Method Detail |
---|
public Object getInNetworkDataset()
public void setInNetworkDataset(Object inNetworkDataset)
inNetworkDataset
- the network dataset on which the location-allocation analysis will be performed.public String getOutNetworkAnalysisLayer()
public void setOutNetworkAnalysisLayer(String outNetworkAnalysisLayer)
outNetworkAnalysisLayer
- name of the location-allocation network analysis layer to create.public String getImpedanceAttribute()
public void setImpedanceAttribute(String impedanceAttribute)
impedanceAttribute
- the cost attribute to be used as impedance in the analysis.public String getLocAllocFromTo()
public void setLocAllocFromTo(String locAllocFromTo)
locAllocFromTo
- specifies the direction of travel between facilities and demand points when calculating the network costs. using this option can affect the allocation of the demand points to the facilities on a network with one-way restrictions and different impedances based on direction of travel. For instance, a facility may be a 15-minute drive from the demand point to the facility, but only a 10-minute trip when traveling from the facility to the demand point. fire departments commonly use the Facility to Demand setting, since they are concerned with the time it takes to travel from the fire station to the location of the emergency. A retail store is more concerned with the time it takes the shoppers to reach the store; therefore, stores commonly use the Demand to Facility option.public String getLocAllocProblemType()
public void setLocAllocProblemType(String locAllocProblemType)
locAllocProblemType
- the problem type that will be solved. The choice of the problem type depends on the kind of facility being located. Different kinds of facilities have different priorities and constraints.public int getNumberFacilitiesToFind()
public void setNumberFacilitiesToFind(int numberFacilitiesToFind)
numberFacilitiesToFind
- specifies the number of facilities that the solver should locate. the facilities with a FacilityType value of Required are always part of the solution when there are more facilities to find than required facilities; any excess facilities to choose are picked from candidate facilities. any facilities that have a FacilityType value of Chosen before solving are treated as candidate facilities at solve time. the parameter value is not considered for the MINIMIZE_FACILITIES problem type since the solver determines the minimum number of facilities to locate to maximize coverage. the parameter value is overridden for the TARGET_MARKET_SHARE problem type because the solver searches for the minimum number of facilities required to capture the specified market share.public double getImpedanceCutoff()
public void setImpedanceCutoff(double impedanceCutoff)
impedanceCutoff
- impedance Cutoff specifies the maximum impedance at which a demand point can be allocated to a facility. The maximum impedance is measured by the least-cost path along the network. If a demand point is outside the cutoff, it is left unallocated. This property might be used to model the maximum distance that people are willing to travel to visit your stores or the maximum time that is permitted for a fire department to reach anyone in the community. demand points have a Cutoff_[Impedance] property, which, if set, overrides the Impedance Cutoff property of the analysis layer. You might find that people in rural areas are willing to travel up to 10 miles to reach a facility while urbanites are only willing to travel up to two miles. You can model this behavior by setting the impedance cutoff value of the analysis layer to 10 and setting the Cutoff_Miles value of the demand points in urban areas to 2.public String getImpedanceTransformation()
public void setImpedanceTransformation(String impedanceTransformation)
impedanceTransformation
- this sets the equation for transforming the network cost between facilities and demand points. This property, coupled with the Impedance Parameter, specifies how severely the network impedance between facilities and demand points influences the solver's choice of facilities. demand points have an ImpedanceTransformation property, which if set, overrides the Impedance Transformation property of the analysis layer. You might determine the impedance transformation should be different for urban and rural residents. You can model this by setting the impedance transformation for the analysis layer to match that of rural residents and setting the impedance transformation for the demand points in urban areas to match that of urbanites.public double getImpedanceParameter()
public void setImpedanceParameter(double impedanceParameter)
impedanceParameter
- provides a parameter value to the equations specified in the Impedance transformation parameter. The parameter value is ignored when the impedance transformation is of type linear. For power and exponential impedance transformations, the value should be non-zero. demand points have an ImpedanceParameter property, which, if set, overrides the Impedance Parameter property of the analysis layer. You might determine that the impedance parameter should be different for urban and rural residents. You can model this by setting the impedance transformation for the analysis layer to match that of rural residents and setting the impedance transformation for the demand points in urban areas to match that of urbanites.public double getTargetMarketShare()
public void setTargetMarketShare(double targetMarketShare)
targetMarketShare
- specifies the target market share in percentage to solve for when the Location-allocation problem type parameter is set to TARGET_MARKET_SHARE. It is the percentage of the total demand weight that you want your solution facilities to capture. The solver chooses the minimum number of facilities required to capture the target market share specified by this numeric value.public Object getAccumulateAttributeName()
public void setAccumulateAttributeName(Object accumulateAttributeName)
accumulateAttributeName
- list of cost attributes to be accumulated during analysis. These accumulation attributes are purely for reference; the solver only uses the cost attribute specified by the Impedance attribute parameter to calculate the route. for each cost attribute that is accumulated, a Total_[Impedance] property is added to the routes that are output by the solver.public String getUTurnPolicy()
public void setUTurnPolicy(String uTurnPolicy)
uTurnPolicy
- restrict or permit U-turns at junctions that could occur during network traversal between stops.public Object getRestrictionAttributeName()
public void setRestrictionAttributeName(Object restrictionAttributeName)
restrictionAttributeName
- list of restriction attributes to apply during the analysis.public String getHierarchy()
public void setHierarchy(String hierarchy)
hierarchy
- the parameter is not used if a hierarchy attribute is not defined on the network dataset used to perform the analysis. In such cases, use "#" as the parameter value.public String getOutputPathShape()
public void setOutputPathShape(String outputPathShape)
outputPathShape
- nullpublic Object getOutputLayer()
public String getToolName()
public String getToolboxName()
public String getToolboxAlias()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |