Packagecom.esri.baserver.tasks.reports
Classpublic class CustomerDemographicComparisonParameters
InheritanceCustomerDemographicComparisonParameters Inheritance StandardReportParameters Inheritance StandardReportParameters Inheritance BATaskParameters Inheritance Object

The CustomerDemographicComparisonParameters class provides input parameters for the Customer Demographic Comparison task.

Output options for this task include creating a report (outputTypes.getReport). You need not specify the output options for this task because the getReport output type is set by default.

View the examples

See also

CustomerDemographicComparisonTask


Public Properties
 PropertyDefined By
 InheritedactiveDatasetID : String
Active dataset ID.
BATaskParameters
  analysisExtent : Geometry
Spatial/geographic extent of the customers to be analyzed (required).
CustomerDemographicComparisonParameters
  firstCustomerLayer : PointLayer
The first customer layer to analyze (required).
CustomerDemographicComparisonParameters
  geographyLayerID : String
ID of a standard geography layer to get demography from (required).
CustomerDemographicComparisonParameters
 InheritedoutputReportItem : FolderItem
Configuration options for storing the output report in the repository.
StandardReportParameters
 InheritedoutputTypes : OutputTypes
Task output types.
BATaskParameters
 InheritedresultType : BAResultType
[read-only] Type of the result returned by the task associated with these parameters.
BATaskParameters
  secondCustomerLayer : PointLayer
The second customer layer to analyze.
CustomerDemographicComparisonParameters
 InheritedstandardReportOptions : ReportOptions
Standard report options.
StandardReportParameters
  summarizations : Array
Summarization fields to compare customer layers by (required).
CustomerDemographicComparisonParameters
 InheritedtaskName : String
[read-only] Name of a Community Analyst Task associated with these parameters.
BATaskParameters
Public Methods
 MethodDefined By
  
Creates a new instance of the CustomerDemographicComparisonParameters class.
CustomerDemographicComparisonParameters
Property Detail
analysisExtentproperty
analysisExtent:Geometry

Spatial/geographic extent of the customers to be analyzed (required). 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

firstCustomerLayerproperty 
firstCustomerLayer:PointLayer

The first customer layer to analyze (required).


Implementation
    public function get firstCustomerLayer():PointLayer
    public function set firstCustomerLayer(value:PointLayer):void
geographyLayerIDproperty 
geographyLayerID:String

ID of a standard geography layer to get demography from (required).


Implementation
    public function get geographyLayerID():String
    public function set geographyLayerID(value:String):void
secondCustomerLayerproperty 
secondCustomerLayer:PointLayer

The second customer layer to analyze.


Implementation
    public function get secondCustomerLayer():PointLayer
    public function set secondCustomerLayer(value:PointLayer):void
summarizationsproperty 
summarizations:Array

Summarization fields to compare customer layers by (required).


Implementation
    public function get summarizations():Array
    public function set summarizations(value:Array):void
Constructor Detail
CustomerDemographicComparisonParameters()Constructor
public function CustomerDemographicComparisonParameters()

Creates a new instance of the CustomerDemographicComparisonParameters class.

Examples
ActionScript to create CustomerDemographicComparisonParameters and then use in a Customer Demographic Comparison task:
                     
     var parameters : CustomerDemographicComparisonParameters = new CustomerDemographicComparisonParameters();
     
     // 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 firstCustomerLayer as an array of PointRecord items.
     parameters.firstCustomerLayer = new PointLayer(points);
     
     // Set secondCustomerLayer as another point layer.
     parameters.secondCustomerLayer = anotherPointLayer;
     
     // Set a data extent for analysis to myExtent that is a value of the Extent or Polygon type.
     parameters.analysisExtent = myExtent;
     
     // Set summarization fields to compare customer demographic profiles by.
     parameters.summarizations = ["TOTPOP_CY", "HHPOP_CY"];
     
     // Set ID of a geography layer to get demography from.
     parameters.dataLayerID = "US.BlockGroups";
     
     // Set report parameters. 
     parameters.standardReportOptions = new ReportOptions("PDF");
     
     customerDemographicComparisonTask.execute(parameters, new Responder(resultHandler, faultHandler));