SegmentedTripAlgorithm

class SegmentedTripAlgorithm(profile: TuningProfile = defaultProfile(), envelope: DeviceEnvelope = DeviceEnvelope.Default, delegate: MileageAlgorithm = TieredGpsAlgorithm( TuningProfile(AlgorithmId.TieredGps, "mileway.v1"), envelope, )) : MileageAlgorithm(source)

Constructors

Link copied to clipboard
constructor(profile: TuningProfile = defaultProfile(), envelope: DeviceEnvelope = DeviceEnvelope.Default, delegate: MileageAlgorithm = TieredGpsAlgorithm( TuningProfile(AlgorithmId.TieredGps, "mileway.v1"), envelope, ))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val id: AlgorithmId

Stable identity, used for persistence, selection and shadow-mode result attribution.

Link copied to clipboard
open override val knobs: List<KnobSpec>

The knobs this algorithm understands. Drives generic tuning UI and automated sweeps.

Functions

Link copied to clipboard
open override fun flush(): List<FixResult>

The trip ended while a stop was still unresolved.

Link copied to clipboard
open override fun process(fix: Fix): FixResult

Consume one fix and report what it contributed.

Link copied to clipboard
open override fun reset(session: SessionContext)

Begin a new journey. Must clear all accumulated state.

Link copied to clipboard
open override fun restore(state: AlgorithmState)

Resume from a snapshot.

Link copied to clipboard
open override fun snapshot(): AlgorithmState

Capture enough state to resume this journey later. Must round-trip with restore.