Packagecom.esri.baserver.tasks.segmentation
Classpublic class GamePlanMapParameters
InheritanceGamePlanMapParameters Inheritance AnalysisAndReportParameters Inheritance StandardReportParameters Inheritance BATaskParameters Inheritance Object

The GamePlanMapParameters class provides input parameters for the Game Plan Map task.

The analysisExtent parameter specifies the market area to thematically shade locations in. The segmentationBase parameter specifies the base for assignment segments to geography sites. The segmentationLevel parameter specifies the ID of a segmentation level.

There are two ways for dividing the Tapestry segments into categories—explicit specification of Core, Developmental, Niche, and Other segments, and categorizing segments on the base of a Game Plan Chart.

In the case of explicit specification, the defineSegmentsExplicitly parameter should have the true value and the optional coreSegments, developmentalSegments, and nicheSegments parameters can specify the categorization of segments by explicit enumerating the IDs of segments belonging to their categories. If a Tapestry segment is missing in all these categories, it is considered to belong to the category of other segments. At least one category should be nonempty. For example, you can specify the core segments only and do not have to specify other categories.

In the case of using the Game Plan Chart, the defineSegmentsExplicitly parameter should have the false value and two tapestry segmentation profiles should be specified—the base profile (baseProfile parameter) is used for calculating the index and the target profile (targetProfile parameter) is used for calculating the percent composition for each Tapestry segment. The indexThreshold and percentThreshold parameters specify positions of Index and Percent Composition axes on the Game Plan Chart. In most cases, the Index axis should be set to a value of at least 100. The Percent Composition axis should be set so you have at least three segments in the Core category. Often there will be a natural break in the percent composition values.

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

GamePlanMapTask


Public Properties
 PropertyDefined By
 InheritedactiveDatasetID : String
Active dataset ID.
BATaskParameters
  analysisExtent : Geometry
Spatial/geographic extent on which to perform the analysis (required).
GamePlanMapParameters
  baseProfile : ProfileData
Base segmentation profile (required if segments are specified using Game Plan Chart).
GamePlanMapParameters
  coreSegments : Array
Array of Core segment IDs (used when segments are explicitly specified).
GamePlanMapParameters
  defineSegmentsExplicitly : Boolean
Method for defining segments explicitely or using Game Plan Chart.
GamePlanMapParameters
  developmentalSegments : Array
Array of Developmental segment IDs (used when segments are explicitly specified).
GamePlanMapParameters
  indexThreshold : Number
Index threshold (required if segments are specified using Game Plan Chart).
GamePlanMapParameters
  nicheSegments : Array
Array of Niche segment IDs (used when segments are explicitly specified).
GamePlanMapParameters
 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
  percentThreshold : Number
Percent composition threshold (required if segments are specified using Game Plan Chart).
GamePlanMapParameters
 InheritedrenderingParameters : RenderingParameters
Configuration options for rendering output to map image.
AnalysisAndReportParameters
 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
  segmentationBase : String
Segmentation base (required).
GamePlanMapParameters
  segmentationLevel : String
Segmentation level ID (required).
GamePlanMapParameters
 InheritedstandardReportOptions : ReportOptions
Standard report options.
StandardReportParameters
  targetProfile : ProfileData
Target segmentation profile (required if segments are specified using Game Plan Chart).
GamePlanMapParameters
 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 GamePlanMapParameters object.
GamePlanMapParameters
Property Detail
analysisExtentproperty
analysisExtent:Geometry

Spatial/geographic extent on which to perform the analysis (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

baseProfileproperty 
baseProfile:ProfileData

Base segmentation profile (required if segments are specified using Game Plan Chart).


Implementation
    public function get baseProfile():ProfileData
    public function set baseProfile(value:ProfileData):void
coreSegmentsproperty 
coreSegments:Array

Array of Core segment IDs (used when segments are explicitly specified).


Implementation
    public function get coreSegments():Array
    public function set coreSegments(value:Array):void
defineSegmentsExplicitlyproperty 
defineSegmentsExplicitly:Boolean

Method for defining segments explicitely or using Game Plan Chart. The explicit specification is default.

The default value is true.


Implementation
    public function get defineSegmentsExplicitly():Boolean
    public function set defineSegmentsExplicitly(value:Boolean):void
developmentalSegmentsproperty 
developmentalSegments:Array

Array of Developmental segment IDs (used when segments are explicitly specified).


Implementation
    public function get developmentalSegments():Array
    public function set developmentalSegments(value:Array):void
indexThresholdproperty 
indexThreshold:Number

Index threshold (required if segments are specified using Game Plan Chart).

The default value is NaN.


Implementation
    public function get indexThreshold():Number
    public function set indexThreshold(value:Number):void
nicheSegmentsproperty 
nicheSegments:Array

Array of Niche segment IDs (used when segments are explicitly specified).


Implementation
    public function get nicheSegments():Array
    public function set nicheSegments(value:Array):void
percentThresholdproperty 
percentThreshold:Number

Percent composition threshold (required if segments are specified using Game Plan Chart).

The default value is NaN.


Implementation
    public function get percentThreshold():Number
    public function set percentThreshold(value:Number):void
segmentationBaseproperty 
segmentationBase:String

Segmentation base (required). Use the Get Segmentation Bases lookup operation to query available segmentation bases.


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

See also

segmentationLevelproperty 
segmentationLevel:String

Segmentation level ID (required). Use the Get Segmentation Levels lookup operation to query available segmentation level IDs and names.


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

See also

targetProfileproperty 
targetProfile:ProfileData

Target segmentation profile (required if segments are specified using Game Plan Chart).


Implementation
    public function get targetProfile():ProfileData
    public function set targetProfile(value:ProfileData):void
Constructor Detail
GamePlanMapParameters()Constructor
public function GamePlanMapParameters(outputTypes:OutputTypes = null)

Creates a new instance of the GamePlanMapParameters object.

Parameters
outputTypes:OutputTypes (default = null) — Task output types.
Examples
ActionScript to create GamePlanMapParameters and then use in a Game Plan Map task:
                     
     var parameters : GamePlanMapParameters = new GamePlanMapParameters();
     
     // Set a data extent for analysis to myExtent that is a value of the Extent or Polygon type.
     parameters.analysisExtent = myExtent;
     
     // Set a segmentation base.
     parameters.segmentationBase = "Total Households";
     
     // Set a segmentation level ID.
     parameters.segmentationLevel = "US.ZIP5";
     
     // Define segments with the use of Game Plan Chart.
     parameters.defineSegmentsExplicitly = false;
     
     // The ProfileData type could take either data as an XML string
     // or as com.esri.baserver.FolderItem type, e.g.
     //var baseProfile:FolderItem = new FolderItem(workspaceName, projectName, FolderType.SEGMENTATION_PROFILES, profileName);
     
     // Set a base segmentation profile.
     parameters.baseProfile = new ProfileData(baseProfile);
     
     // Set a target segmentation profile.
     parameters.targetProfile = new ProfileData(targetProfile);
     
     // Set an index threshold. 
     parameters.indexThreshold = 110.0;
     
     // Set a percent composition threshold.
     parameters.percentThreshold = 4.0; 
     
     // Set report parameters. 
     parameters.standardReportOptions = new ReportOptions("PDF");
      
     gamePlanMapTask.execute(parameters, new Responder(resultHandler, faultHandler));