CircuitProgress

class CircuitProgress(val state: NavigationProgressState, val currentSpeed: Double, val currentSpeedLimit: Double, val currentAddress: Address?, val currentGPSPosition: Location?, val currentMapMatchedPosition: GeoPoint?, val currentMapMatchedHeading: Double, val currentEnergyLoad: Double, val currentSoc: Double, val distanceToDest: Double, val drivingDurationToDest: Int, val drivingAndStopDurationToDest: Int, val distanceToNextInstruction: Double, val durationToNextInstruction: Int, val distanceToNextWaypoint: Double, val durationToNextWaypoint: Int, val nextWaypointIndex: Int, val totalDistance: Double, val totalDrivingTime: Int, val totalDrivingAndStopDuration: Int, val currentRouteInstructionIndex: Int, val currentRouteSectionIndex: Int, val energyLoadAtNextChargeStop: Double, val socAtNextChargeStop: Double, val nextChargeStopDuration: Int, val circuitNavigationState: CircuitNavigationState?, val circuitPercentage: Double) : GuidanceProgress

Class that holds progress info about the current circuit guidance. Extends GuidanceProgress with circuit-specific information.

Parameters

circuitNavigationState

The current state of the circuit navigation. See CircuitNavigationState.

circuitPercentage

The current position on the circuit expressed in percentage (0-100). This can exceed 100 if the driver is doing multiple laps.

Constructors

Link copied to clipboard
constructor(state: Int, currentSpeed: Double, currentSpeedLimit: Double, currentAddress: Address?, locLongitude: Double, locLatitude: Double, locAltitude: Double, locBearing: Float, locSatUsed: Int, currentMapMatchedPosition: GeoPoint?, currentMapMatchedHeading: Double, currentEnergyLoad: Double, currentSoc: Double, distanceToDest: Double, drivingDurationToDest: Int, drivingAndStopDurationToDest: Int, distanceToNextInstruction: Double, durationToNextInstruction: Int, distanceToNextWaypoint: Double, durationToNextWaypoint: Int, nextWaypointIndex: Int, totalDistance: Double, totalDrivingTime: Int, totalDrivingAndStopDuration: Int, currentRouteInstructionIndex: Int, currentRouteSectionIndex: Int, energyLoadAtNextChargeStop: Double, socAtNextChargeStop: Double, nextChargeStopDuration: Int, circuitNavigationState: Int?, circuitPercentage: Double)

Internal constructor called from JNI code : Don't modify its prototype !

constructor(guidanceProgress: GuidanceProgress, circuitNavigationState: CircuitNavigationState?, circuitPercentage: Double)

Constructor to create a CircuitProgress from a GuidanceProgress.

constructor(state: NavigationProgressState, currentSpeed: Double, currentSpeedLimit: Double, currentAddress: Address?, currentGPSPosition: Location?, currentMapMatchedPosition: GeoPoint?, currentMapMatchedHeading: Double, currentEnergyLoad: Double, currentSoc: Double, distanceToDest: Double, drivingDurationToDest: Int, drivingAndStopDurationToDest: Int, distanceToNextInstruction: Double, durationToNextInstruction: Int, distanceToNextWaypoint: Double, durationToNextWaypoint: Int, nextWaypointIndex: Int, totalDistance: Double, totalDrivingTime: Int, totalDrivingAndStopDuration: Int, currentRouteInstructionIndex: Int, currentRouteSectionIndex: Int, energyLoadAtNextChargeStop: Double, socAtNextChargeStop: Double, nextChargeStopDuration: Int, circuitNavigationState: CircuitNavigationState?, circuitPercentage: Double)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String

Returns a string representation of the circuit progress. Includes all base guidance progress information plus circuit-specific data.