Skip to content

SmartphoneDeploymentExecutorSamplingState

The sampling state of a SmartphoneDeploymentExecutor and its task controls.

Stored as SmartphoneStudy.samplingState so that each task control can be resumed or kept paused after an app restart.

Inheritance
Annotations

Constructors

SmartphoneDeploymentExecutorSamplingState.fromJson

SmartphoneDeploymentExecutorSamplingState.fromJson(
  1. Map<String, dynamic> json
)

SmartphoneDeploymentExecutorSamplingState

SmartphoneDeploymentExecutorSamplingState(
  1. ExecutorState state,
  2. String studyDeploymentId,
  3. List<TaskControlExecutorSamplingState> taskControlSamplingStates
)

Properties

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

studyDeploymentId

String studyDeploymentId
getter/setter pair

The id of the study deployment this state belongs to.

taskControlSamplingStates

List<TaskControlExecutorSamplingState> taskControlSamplingStates
getter/setter pair

The sampling state of each TaskControlExecutor in the deployment.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.