Executor<TConfig> class abstract

Runs one part of a deployment, configured by a TConfig.

Executors form a tree: a SmartphoneDeploymentExecutor runs a TaskControlExecutor per task control, which runs a TriggerExecutor and a TaskExecutor, which runs a Probe per measure.

The behavior of an executor is controlled by its lifecycle methods: initialize, resume, pause, and dispose. A paused executor can be resumed again. state holds the current ExecutorState and stateEvents is a broadcast stream of state changes. If an error occurs, the state becomes ExecutorState.Undefined.

Collected data comes out of the measurements stream. To listen to all measurements from all studies on this phone, use SmartPhoneClientManager.measurements.

Implementers

Constructors

Executor()

Properties

configuration → TConfig?
The configuration of this executor as set in initialize.
no setter
deployment → SmartphoneDeployment?
The deployment that this executor is part of executing.
no setter
hashCode → int
The hash code for this object.
no setterinherited
measurements → Stream<Measurement>
The stream of Measurement collected by this executor.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
samplingState → SamplingState
The runtime sampling state of this executor.
no setter
state → ExecutorState
The runtime state of this executor.
no setter
stateEvents → Stream<ExecutorState>
The runtime state changes of this executor.
no setter

Methods

dispose() → void
Disposes this executor.
initialize(TConfig configuration, [SmartphoneDeployment? deployment]) → void
Configures and initializes the executor. Call before resume.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Pauses the executor until resume is called.
pauseButShouldBeResumed() → void
Pauses the executor and marks it to be resumed later.
resume() → void
Starts or resumes the executor.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited