carp_core library

The core CARP domain classes like Study, Task, and Measure. Also hold JSON serialization logic to serialize Datum objects into a CARPDataPoint as well as deseralization of Study objects obtained from a StudyManager.

Classes

AbstractDataManager
An abstract DataManager implementation useful for extension. Also supports JSON encoding.
CARPDataFormat
Specifies the data format of a CARPDataPoint.
CARPDataPoint
A CARP Data Point which can be uploaded to a CARP data endpoint. [...]
CARPDataPointHeader
The header attached to all CARPDataPoints.
CARPDatum
A Datum which conforms to the CARPDataFormat.
DataEndPoint
Specify an endpoint where a DataManager can upload data.
DataEndPointType
A enumeration of known endpoint API types.
DataManager
The DataManager interface is used to upload Datum objects to any data manager that implements this interface.
DataManagerRegistry
A registry of DataManagers. [...]
Datum
A base (abstract) class for a single unit of sensed information.
Device
Provides (static) information about the local device. [...]
DeviceInfo
Holds basic information about the mobile device from where the data is collected.
ErrorDatum
A Datum object holding a Error, i.e. that the probe / sensor returned some sort of error, which is reported back.
FileDataEndPoint
Specify an endpoint where a file-based DataManager can store JSON data as files on the local device.
FromJsonFactory
A factory class that holds fromJson functions to be used in JSON deserialization.
ListeningProbeMeasure
A ListeningProbeMeasure specify how data can be collected by listening to events.
Measure
A Measure holds information about what measure to do for each task. This also includes measure specific configuration.
MultiDatum
A Datum object holding multiple Datums of the same type.
NameSpace
An abstract class represent any OMH schema. Currently supporting: [...]
ParallelTask
A Task which runs all Measures in parallel.
PollingProbeMeasure
A PollingProbeMeasure specify how to collect data by polling a sensor/probe on a regular basis. [...]
ProbeMeasure
A ProbeMeasure specify how a probe should collect data.
SequentialTask
A Task which takes all its Measures in sequence. [...]
Serializable
This is the base class for all JSON serializable objects.
StringDatum
A very simple Datum that only holds a string datum object.
Study
The Study holds information about the study to be performed on this device. The study may be fetched in a StudyManager who knows how to fetch a study protocol for this device. [...]
StudyManager
An interface for defining a way to get a Study.
Task
A Task holds information about each task to be executed as part of a Study. Each Task holds a list of Measures to be done as part of this task.