carp_context_package library

A library for collecting context information on:

  • location
  • activity
  • weather
  • air quality
  • mobility features

Classes

ActivityDatum
Holds activity information.
ActivityProbe
Collects activity information from the underlying OS's activity recognition API. It generates an ActivityDatum every time an activity is detected.
AirQualityDatum
A Datum that holds air quality information collected via the World's Air Quality Index (WAQI) API.
AirQualityProbe
Collects local air quality information using the AirQuality plugin.
AirQualitySamplingPackage
The air quality sampling package.
AirQualityService
An OnlineService for the air quality service.
AirQualityServiceManager
A DeviceManager for the AirQualityService.
ContextSamplingPackage
This is the base class for this context sampling package.
Geofence
A class representing a circular geofence with a center, a radius (in meters) and a name.
GeofenceDatum
Holds information about a geofence event of entering, exiting, or dweling.
GeofenceProbe
Listen on location movements and reports a GeofenceDatum to the stream when a geofence event happens. This probe can handle only one GeofenceMeasure. If you need multiple geofences, add a GeofenceMeasure for each to your Study for example using the Trigger model.
GeofenceSamplingConfiguration
Specify the configuration of a circular geofence measure, specifying the:
GeoLocationProbe
Collects geolocation information from the underlying OS's location API. Is a StreamProbe that generates a LocationDatum every time location is changed.
GeoPosition
Position coordinated in Degrees (i.e. GPS-style).
LocationDatum
Holds location information using the GPS format.
LocationManager
A manger that knows how to configure and get location. Provide access to location data while the app is in the background.
LocationProbe
Collects location information from the underlying OS's location API. Is a DatumProbe that collects one LocationDatum at a time.
LocationSamplingPackage
The location sampling package.
LocationService
An OnlineService for the location manager.
LocationServiceManager
A DeviceManager for the location service.
MobilityDatum
A Datum that holds mobility features information.
MobilityProbe
Collects mobility features using the MobilityFeatures API.
MobilitySamplingConfiguration
Specify the configuration on how to measure mobility features.
OMHContextDataPointDatum
A Datum which can hold an OMH DataPoint and provide its correct OMH format and provenance.
OMHGeopositionDataPoint
A TransformedDatum that holds an OMH Geoposition data point.
OMHPhysicalActivityDataPoint
A TransformedDatum that holds an OMH PhysicalActivity data point.
WeatherDatum
A Datum that holds weather information collected through OpenWeatherMap.
WeatherProbe
Collects local weather information using the WeatherFactory API.
WeatherSamplingPackage
The air quality sampling package.
WeatherService
An OnlineService for the weather service.
WeatherServiceManager
A DeviceManager for the WeatherService.

Enums

GeofenceState
The possible states of a geofence.
GeofenceType
GeolocationAccuracy
The precision of the Location. A lower precision will provide a greater battery life.