CircuitProgress

class CircuitProgress(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, 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: 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)
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.

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.