ContextSamplingPackage class
This is the base class for this context sampling package.
To use this package, register it in the carp_mobile_sensing
package using
SamplingPackageRegistry().register(ContextSamplingPackage());
- Inheritance
-
- Object
- SmartphoneSamplingPackage
- ContextSamplingPackage
Constructors
Properties
-
dataTypes
→ List<
DataTypeMetaData> -
The list of data type this package supports.
no setterinherited
-
deviceManager
→ DeviceManager<
DeviceConfiguration< DeviceRegistration> > -
Get the
DeviceManager
for the device used by this package.no setterinherited - deviceType → String
-
What device type is this package using?
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
permissions
→ List<
Permission> -
The list of permissions that this package need in order to run.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- samplingSchemes → DataTypeSamplingSchemeMap
-
The default sampling schemes for all dataTypes in this package.
no setteroverride
Methods
-
create(
String type) → Probe? -
Creates a new
Probe
of the specifiedtype
. Note thattype
should be one of the dataTypes that this package supports. Returns null if a probe cannot be created for thetype
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onRegister(
) → void -
Callback method when this package is being registered.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- ACTIVITY → const String
- Measure type for continuous collection of activity events as recognized by the phone's activity recognition sub-system.
- AIR_QUALITY → const String
- Measure type for collection of air quality data from the World's Air Quality Index (WAQI) API.
- CURRENT_LOCATION → const String
- Measure type for one-time collection of current location.
- GEOFENCE → const String
- Measure type for collection of geofence events (enter/exit/dwell).
- LOCATION → const String
- Measure type for continuos collection of location data.
- MOBILITY → const String
- Measure type for continuos collection of mobility features like number of places visited, home stay percentage, and location entropy.
- WEATHER → const String
- Measure type for collection of weather data from the Open Weather API.