Skip to content

WeatherSamplingPackage

The sampling package for ContextSamplingPackage.WEATHER.

Registered automatically by ContextSamplingPackage. Its WeatherProbe runs on a WeatherService connected device.

Inheritance

Constructors

WeatherSamplingPackage

WeatherSamplingPackage()

Properties

deviceManager

Get the DeviceManager for the device used by this package.

deviceType

String get deviceType
override

What device type is this package using?

This device type is matched with the DeviceConfiguration.roleName when a PrimaryDeviceConfiguration is deployed on the phone and executed by a SmartphoneStudyController.

Note that it is assumed that a sampling package only supports one type of device.

samplingSchemes

DataTypeSamplingSchemeMap get samplingSchemes
override

The default sampling schemes for all dataTypes in this package.

All sampling packages should defined a DataTypeSamplingScheme for each data type.

Methods

create

Probe? create(
  1. String type
)
override

Creates a new Probe of the specified type. Note that type should be one of the dataTypes that this package supports. Returns null if a probe cannot be created for the type.