AETRProfile

data class AETRProfile(val filters: List<String> = listOf("SYPetrolStation"), val searchRadius: Int = 50, val legalStopsStandard: AETRProfile.LegalStopsStandard = LegalStopsStandard.Default, val currentTime: Int = 0, val fortnightDrivingTime: Int = 0, val weeklyDrivingTime: Int = 0, val dailyDrivingTime: Int = 0, val currentDrivingTime: Int = 0, val lastWeeklyRestTimestamp: Int = 0, val lastDailyRestTimestamp: Int = 0, val usedExtendedDrivingPeriod: Int = 0, val usedShortenedDailyRestPeriod: Int = 0, val lastWeeklyRestTaken: AETRProfile.LastWeeklyRestTaken = LastWeeklyRestTaken.None) : Parcelable

Constructors

Link copied to clipboard
constructor(filters: List<String> = listOf("SYPetrolStation"), searchRadius: Int = 50, legalStopsStandard: AETRProfile.LegalStopsStandard = LegalStopsStandard.Default, currentTime: Int = 0, fortnightDrivingTime: Int = 0, weeklyDrivingTime: Int = 0, dailyDrivingTime: Int = 0, currentDrivingTime: Int = 0, lastWeeklyRestTimestamp: Int = 0, lastDailyRestTimestamp: Int = 0, usedExtendedDrivingPeriod: Int = 0, usedShortenedDailyRestPeriod: Int = 0, lastWeeklyRestTaken: AETRProfile.LastWeeklyRestTaken = LastWeeklyRestTaken.None)

Properties

Link copied to clipboard

Uninterrupted driving time in seconds

Link copied to clipboard
val currentTime: Int = 0

Current time relative to two week period in seconds

Link copied to clipboard

Driving time since last daily rest in seconds

Link copied to clipboard

Filter of POI categories

Link copied to clipboard

Two week driving period in seconds

Link copied to clipboard

Time when last daily rest was taken relative to two week period; < currentTime; in seconds

Link copied to clipboard

Last type of used weekly rest (None, Long - more than 45 hours, Short - 24 hours)

Link copied to clipboard

Time when last weekly rest was taken relative to two week period; < currentTime; in seconds

Link copied to clipboard

Legal stops standard (Default - 45 minutes break every 4.5 hours, AETR or ES 561/2006)

Link copied to clipboard
val searchRadius: Int = 50

Search radius in meters

Link copied to clipboard

Used periods when driving 9h

Link copied to clipboard

Used periods when rest was < 9h

Link copied to clipboard

Weekly driving period in seconds

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)