CarpDataTypes
The data types defined in CARP Core, and a registry of their metadata.
The constants (e.g. GEOLOCATION) are the type names to use in a Measure. CarpDataTypes() is a singleton whose types map holds a DataTypeMetaData for each of them. Sampling packages add their own types with add.
Constructors
CarpDataTypes
Constants
ACCELERATION
Rate of change in velocity, including gravity, along perpendicular x, y, and z axes in the device's coordinate system.
ANGULAR_VELOCITY
Rate of rotation around perpendicular x, y, and z axes.
CARP_NAMESPACE
The DataType namespace of all CARP data type definitions.
COMPLETED_TASK
An interactive (i.e., involving the user) task which was completed.
ECG
Electrocardiography (ECG) data, representing electrical activity of the heart for a single lead.
EDA
Single-channel electrodermal activity, represented as skin conductance.
ERROR
Any error that may have occurred during data collection.
GEOLOCATION
Geographic location data, representing latitude and longitude within the World Geodetic System 1984.
HEART_RATE
Represents the number of heart contractions (beats) per minute.
INTERBEAT_INTERVAL
The time interval between two consecutive heartbeats.
MAGNETIC_FIELD
Magnetic field around the device in x,y,z (typically measured by a magnetometer).
NON_GRAVITATIONAL_ACCELERATION
Rate of change in velocity, excluding gravity, along perpendicular x, y, and z axes in the device's coordinate system.
PPG
Photoplethysmography (PPG) data, representing blood volume changes measured at the skin's surface.
ROTATION
Rotation of the device in x,y,z (typically measured by a gyroscope).
SENSOR_SKIN_CONTACT
Determines whether a sensor requiring contact with skin is making proper contact at a specific point in time.
SIGNAL_STRENGTH
The received signal strength of a wireless device.
STEP_COUNT
Step count data, representing the number of steps a participant has taken in a specified time interval.
TRIGGERED_TASK
A task which was started or stopped by a trigger, referring to identifiers in the study protocol.
Properties
all
The names of all registered data types.
types
All registered data types, mapped by type name.
Methods
add
- List<
DataTypeMetaData> newTypes
Add a list of data types to types. An existing type with the same name is replaced.