Skip to content

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

CarpDataTypes()

Constants

ACCELERATION

String const ACCELERATION

Rate of change in velocity, including gravity, along perpendicular x, y, and z axes in the device's coordinate system.

ANGULAR_VELOCITY

String const ANGULAR_VELOCITY

Rate of rotation around perpendicular x, y, and z axes.

CARP_NAMESPACE

String const CARP_NAMESPACE

The DataType namespace of all CARP data type definitions.

COMPLETED_TASK

String const COMPLETED_TASK

An interactive (i.e., involving the user) task which was completed.

ECG

String const ECG

Electrocardiography (ECG) data, representing electrical activity of the heart for a single lead.

EDA

String const EDA

Single-channel electrodermal activity, represented as skin conductance.

ERROR

String const ERROR

Any error that may have occurred during data collection.

GEOLOCATION

String const GEOLOCATION

Geographic location data, representing latitude and longitude within the World Geodetic System 1984.

HEART_RATE

String const HEART_RATE

Represents the number of heart contractions (beats) per minute.

INTERBEAT_INTERVAL

String const INTERBEAT_INTERVAL

The time interval between two consecutive heartbeats.

MAGNETIC_FIELD

String const MAGNETIC_FIELD

Magnetic field around the device in x,y,z (typically measured by a magnetometer).

NON_GRAVITATIONAL_ACCELERATION

String const NON_GRAVITATIONAL_ACCELERATION

Rate of change in velocity, excluding gravity, along perpendicular x, y, and z axes in the device's coordinate system.

PPG

String const PPG

Photoplethysmography (PPG) data, representing blood volume changes measured at the skin's surface.

ROTATION

String const ROTATION

Rotation of the device in x,y,z (typically measured by a gyroscope).

SENSOR_SKIN_CONTACT

String const SENSOR_SKIN_CONTACT

Determines whether a sensor requiring contact with skin is making proper contact at a specific point in time.

SIGNAL_STRENGTH

String const SIGNAL_STRENGTH

The received signal strength of a wireless device.

STEP_COUNT

String const STEP_COUNT

Step count data, representing the number of steps a participant has taken in a specified time interval.

TRIGGERED_TASK

String const TRIGGERED_TASK

A task which was started or stopped by a trigger, referring to identifiers in the study protocol.

Properties

all

List<String> get all

The names of all registered data types.

types

Map<String, DataTypeMetaData> types
getter/setter pair

All registered data types, mapped by type name.

Methods

add

void add(
  1. List<DataTypeMetaData> newTypes
)

Add a list of data types to types. An existing type with the same name is replaced.