none method

SamplingSchema none()

A non-sampling sampling schema.

This schema is used in the power-aware adaptation of sampling. See PowerAwarenessState. This schema pauses all sampling by disabling all probes. Sampling will be restored to the minimum level, once the device is recharged above the PowerAwarenessState.MINIMUM_SAMPLING_LEVEL level.

Implementation

SamplingSchema none() {
  SamplingSchema schema = SamplingSchema(
    type: SamplingSchemaType.none,
    name: 'No sampling',
    powerAware: true,
  );
  CAMSDataType.all.forEach((type) =>
      schema.measures[type] = CAMSMeasure(type: type, enabled: false));

  return schema;
}