Package com.autoliv.datalogger.data

Data gathering related functionalities

Types

Link copied to clipboard
abstract class DataCsv<T> : DataFormat<T>

Abstract class containing common functionality to format a data to CSV

Link copied to clipboard
interface DataFormat<T>

Interface for classes that formats the data T

Link copied to clipboard
interface DataRecorder

Interface for facilitators of data recording

Link copied to clipboard
data class LocationProperties(val name: String, val formatter: DataFormat<LocationResult>)

Properties of the location for aggregate data recorders.

Link copied to clipboard
class MobilityDataRecorder(    val sensorManager: SensorManager,     val locationProvider: FusedLocationProviderClient,     val folderPath: String,     val locationRequest: LocationRequest = defaultLocationRequest) : DataRecorder

An aggregate recorder that records multiple sensors and locations into CSV

Link copied to clipboard
data class SensorProperties(    val name: String,     val formatter: SensorDataFormat,     val type: Int)

Properties of Sensors for aggregate data recorders.

Functions

Link copied to clipboard
suspend fun <T> Channel<T>.streamToFile(file: File, formatter: DataFormat<T>)

Writes the channel contents into a file, transforming the contents using a formatter