Packagecom.esri.baserver.tasks.reports
Classpublic class MarketPenetrationParameters
InheritanceMarketPenetrationParameters Inheritance AnalysisAndReportParameters Inheritance StandardReportParameters Inheritance BATaskParameters Inheritance Object

The MarketPenetrationParameters class provides input parameters for the Market Penetration task.

The analysis can be restricted to an analysis extent if the analysisExtent parameter is specified. The optional singleAreaID parameter restrict the analysis to a single area of the boundary layer.

Market penetration options:

Output options for this task include rendering an output image (outputTypes.getMapImage), creating a feature class for subsequent analysis (outputTypes.getFeatureClass), and/or creating a report (outputTypes.getReport). If no output options are specified, the required output options are specified as follows. If the renderingParameters parameter is specified, the image output is requested. If the standardReportOptions parameter is specified, the report is requested. If the outputAnalysisItem parameter is specified, the output analysis feature class will be stored in the repository. If renderingParameters, standardReportOptions, and outputAnalysisItem parameters are missing, the feature class output is requested.

View the examples

See also

MarketPenetrationTask


Public Properties
 PropertyDefined By
 InheritedactiveDatasetID : String
Active dataset ID.
BATaskParameters
  analysisExtent : Geometry
Spatial/geographic extent to restrict analysis by.
MarketPenetrationParameters
  areaDescField : String
Name of area description field in the boundaries layer (required).
MarketPenetrationParameters
  areaIDField : String
Name of area ID field in the boundaries layer (required).
MarketPenetrationParameters
  boundaries : Boundaries
A polygon layer whose features represent trade areas (required).
MarketPenetrationParameters
  customerLinkField : String
The attribute field in the input customers layer which links every customer with the associated store/business ID.
MarketPenetrationParameters
  customers : PointLayer
A point layer containing point features which represent the locations of customers (required).
MarketPenetrationParameters
  customerWeightField : String
The weight field in the customers layer used for calculating a weight rather than number of customers, Sales for example.
MarketPenetrationParameters
  dataHierarchy : String
Name of a data hierarchy used for summarization.
MarketPenetrationParameters
  multiplier : Number
Multiplier of penetration values.
MarketPenetrationParameters
 InheritedoutputAnalysisItem : FolderItem
Configuration options for storing the output feature class in the repository.
AnalysisAndReportParameters
 InheritedoutputReportItem : FolderItem
Configuration options for storing the output report in the repository.
AnalysisAndReportParameters
 InheritedoutputSpatialReference : SpatialReference
The spatial reference to return the output feature set in.
AnalysisAndReportParameters
 InheritedoutputTypes : OutputTypes
Task output types.
BATaskParameters
 InheritedrenderingParameters : RenderingParameters
Configuration options for rendering output to map image.
AnalysisAndReportParameters
  reportOrientation : ReportOrientation
Orientation of the report.
MarketPenetrationParameters
 InheritedresultType : BAResultType
[read-only] Type of the result returned by the task associated with these parameters.
BATaskParameters
 InheritedreturnGeometry : Boolean
An option specifying the presence of the shape attribute in the returned record set.
AnalysisAndReportParameters
  singleAreaID : String
ID of a single area of the boundaries layer to calculate market penetration for.
MarketPenetrationParameters
 InheritedstandardReportOptions : ReportOptions
Standard report options.
StandardReportParameters
  storeIDField : String
The attribute field name in the boundaries layer which links every trade area with the associated store/business ID.
MarketPenetrationParameters
 InheritedtaskName : String
[read-only] Name of a Community Analyst Task associated with these parameters.
BATaskParameters
  totalMarketCountField : String
Total market count field name (required).
MarketPenetrationParameters
  useGeographyLevel : Boolean
An option specifying the use of a geography layer for either calculating market penetration or not.
MarketPenetrationParameters
Public Methods
 MethodDefined By
  
Creates a new instance of the MarketPenetrationParameters class.
MarketPenetrationParameters
Property Detail
analysisExtentproperty
analysisExtent:Geometry

Spatial/geographic extent to restrict analysis by. This parameter expects a value of the Extent or Polygon type.


Implementation
    public function get analysisExtent():Geometry
    public function set analysisExtent(value:Geometry):void

See also

areaDescFieldproperty 
areaDescField:String

Name of area description field in the boundaries layer (required).


Implementation
    public function get areaDescField():String
    public function set areaDescField(value:String):void
areaIDFieldproperty 
areaIDField:String

Name of area ID field in the boundaries layer (required).

The default value is "AREA_ID".


Implementation
    public function get areaIDField():String
    public function set areaIDField(value:String):void
boundariesproperty 
boundaries:Boundaries

A polygon layer whose features represent trade areas (required).


Implementation
    public function get boundaries():Boundaries
    public function set boundaries(value:Boundaries):void
customerLinkFieldproperty 
customerLinkField:String

The attribute field in the input customers layer which links every customer with the associated store/business ID.

The default value is "STORE_ID".


Implementation
    public function get customerLinkField():String
    public function set customerLinkField(value:String):void
customersproperty 
customers:PointLayer

A point layer containing point features which represent the locations of customers (required).


Implementation
    public function get customers():PointLayer
    public function set customers(value:PointLayer):void
customerWeightFieldproperty 
customerWeightField:String

The weight field in the customers layer used for calculating a weight rather than number of customers, Sales for example.


Implementation
    public function get customerWeightField():String
    public function set customerWeightField(value:String):void
dataHierarchyproperty 
dataHierarchy:String

Name of a data hierarchy used for summarization. This property is used if useGeographyLevel parameter is true. If this property value is null or empty, the default data hierarchy is used. List of available data hierarchies can be retrieved with Get Data Hierarchies task.


Implementation
    public function get dataHierarchy():String
    public function set dataHierarchy(value:String):void

See also

multiplierproperty 
multiplier:Number

Multiplier of penetration values.

The default value is 100.


Implementation
    public function get multiplier():Number
    public function set multiplier(value:Number):void
reportOrientationproperty 
reportOrientation:ReportOrientation

Orientation of the report.

The default value is ReportOrientation.PORTRAIT.


Implementation
    public function get reportOrientation():ReportOrientation
    public function set reportOrientation(value:ReportOrientation):void
singleAreaIDproperty 
singleAreaID:String

ID of a single area of the boundaries layer to calculate market penetration for.


Implementation
    public function get singleAreaID():String
    public function set singleAreaID(value:String):void
storeIDFieldproperty 
storeIDField:String

The attribute field name in the boundaries layer which links every trade area with the associated store/business ID.

The default value is "STORE_ID".


Implementation
    public function get storeIDField():String
    public function set storeIDField(value:String):void
totalMarketCountFieldproperty 
totalMarketCountField:String

Total market count field name (required).


Implementation
    public function get totalMarketCountField():String
    public function set totalMarketCountField(value:String):void
useGeographyLevelproperty 
useGeographyLevel:Boolean

An option specifying the use of a geography layer for either calculating market penetration or not.

The default value is false.


Implementation
    public function get useGeographyLevel():Boolean
    public function set useGeographyLevel(value:Boolean):void
Constructor Detail
MarketPenetrationParameters()Constructor
public function MarketPenetrationParameters(outputTypes:OutputTypes = null)

Creates a new instance of the MarketPenetrationParameters class.

Parameters
outputTypes:OutputTypes (default = null) — Task output types.
Examples
ActionScript to create MarketPenetrationParameters and then use in a Market Penetration task:
                     
     var parameters : MarketPenetrationParameters = new MarketPenetrationParameters();
     
     // The PointLayer type could take either data as type
     // com.esri.ags.tasks.FeatureSet, com.esri.baserver.FolderItem,
     // or an array of com.esri.bacore.PointRecord items, e.g.
     //var points:Array = [new PointRecord("Customer 1", "Steiner St. & Geary Blvd", "1", 37.78415, -122.4346)];
     
     // Set customers as an array of PointRecord items.
     parameters.customers = new PointLayer(points);
     
     // The Boundaries type could take either data as type 
     // com.esri.ags.tasks.FeatureSet, com.esri.baserver.FolderItem, or com.esri.bacore.StandardLayer.
     
     // Set boundaries with a valid data type.
     parameters.boundaries = new Boundaries(boundaries);
     
     // Set name of area description field in the boundaries layer.
     parameters.areaDescField = "Area_Desc";
     
     // Set total market count field name.
     parameters.totalMarketCountField = totalMarketCountField;
     
     // Optionally restrict analysis to myExtent that is a value of the Extent or Polygon type.
     //parameters.analysisExtent = myExtent;
     
     marketPenetrationTask.execute(parameters, new Responder(resultHandler, faultHandler));