Packagecom.esri.bacore.client
Classpublic class BATaskParameters
InheritanceBATaskParameters Inheritance Object
Implements IBATaskParameters, IBADatasetParameters
Subclasses AnalysisParameters, StandardReportParameters, SummaryReportParameters

The BATaskParameters class is the base class for parameters of Community Analyst Tasks producing a complex output object such as TaskResultOutput.

This class provides a technique for composing output types in the OutputType URL variable. The outputTypes property of this class specifies what output types are requested in the parameters of a task. If no output type is specified, the default values for output types will be selected while composing the URL variable. The mechanism of selection default output types is implemented within the setDefaultOutputTypes method. This method can be overriden in inheriting classes and required output types can be set in them. For example, in the SummaryReportParameters class, the overriden method tests if report options are specified and sets the getReport output type if true.

All Community Analyst Task producing a complex output are devided into 3 categories depending on reports produced:

See also

AnalysisParameters
StandardReportParameters
SummaryReportParameters


Public Properties
 PropertyDefined By
  activeDatasetID : String
Active dataset ID.
BATaskParameters
  outputTypes : OutputTypes
Task output types.
BATaskParameters
  resultType : BAResultType
[read-only] Type of the result returned by the task associated with these parameters.
BATaskParameters
  taskName : String
[read-only] Name of a Community Analyst Task associated with these parameters.
BATaskParameters
Public Methods
 MethodDefined By
  
BATaskParameters(taskName:String, outputTypes:OutputTypes = null)
Creates a new instance of the BATaskParameters class.
BATaskParameters
  
toURLVariables():URLVariables
Converts task parameters to URL variables.
BATaskParameters
Protected Methods
 MethodDefined By
  
Sets default output types.
BATaskParameters
Property Detail
activeDatasetIDproperty
activeDatasetID:String

Active dataset ID.


Implementation
    public function get activeDatasetID():String
    public function set activeDatasetID(value:String):void
outputTypesproperty 
outputTypes:OutputTypes

Task output types.

The output types instance specifies operations that will execute in the single Web services request. The getFeatureClass operation returns the serialized geometry and attributes of the output feature class in the response. The getReport operation specifies creation of report(s) and returns links to reports in the response. The getMapImage operation specifies creation of an image depicting the output feature class and returns a link to the image in the response.


Implementation
    public function get outputTypes():OutputTypes
    public function set outputTypes(value:OutputTypes):void
resultTypeproperty 
resultType:BAResultType  [read-only]

Type of the result returned by the task associated with these parameters. The base implementation returns BAResultType.TASK_RESULT_OUTPUT.


Implementation
    public function get resultType():BAResultType
taskNameproperty 
taskName:String  [read-only]

Name of a Community Analyst Task associated with these parameters.


Implementation
    public function get taskName():String
Constructor Detail
BATaskParameters()Constructor
public function BATaskParameters(taskName:String, outputTypes:OutputTypes = null)

Creates a new instance of the BATaskParameters class.

Parameters
taskName:String — Name of a Community Analyst Task associated with these parameters.
 
outputTypes:OutputTypes (default = null) — Task output types.
Method Detail
setDefaultOutputTypes()method
protected function setDefaultOutputTypes(outputTypes:OutputTypes):void

Sets default output types.

This method is intended for overriding in subclasses. It specifies output types which should be selected in the case when all properties of the outputTypes object are false. The base method does nothing.

Parameters

outputTypes:OutputTypes — Output types to specify default values in.

toURLVariables()method 
public function toURLVariables():URLVariables

Converts task parameters to URL variables. This method is intended for overriding in subclasses. The base method creates an instance of URLVariables class and composes the OutputType variable in it.

Returns
URLVariables — URL variables