EvFallbackStrategy

abstract class EvFallbackStrategy

Defines the strategy to apply when EV data is missing or invalid.

This is used to determine how the system should behave if required EV-related inputs (like stateOfCharge, efficiency, or chargingCurve) are missing, null, or malformed.

There are two standard fallback strategies:

  1. FallbackToRegularNavigation — gracefully degrades to standard navigation mode and logs missing data.

  2. CrashOnError — immediately throws an error when invalid or incomplete EV data is detected.

Inheritors

Types

Link copied to clipboard

Crash immediately if EV data is missing or malformed.

Link copied to clipboard

Fallback to standard navigation mode when EV data is not available or invalid.