Accumulate vehicle and navigation observations into trip state. More...
Public Member Functions | |
| None | observe_vehicle_state (self, VehicleState state) |
| Consume one normalized vehicle telemetry snapshot. | |
| None | observe_position_state (self, PositionState state) |
| Consume one normalized geographic position snapshot. | |
| None | observe_ground_motion_state (self, GroundMotionState state) |
| Consume one normalized ground-motion snapshot. | |
| TripState | snapshot (self) |
| Return the current immutable trip snapshot. | |
| TripState | finish (self, datetime|None ended_at=None) |
| Finish the current trip and return its final snapshot. | |
| None | reset (self) |
| Discard current trip state and return to idle. | |
Accumulate vehicle and navigation observations into trip state.
Implementations own trip lifecycle policy and derived calculations. Messaging, persistence, and presentation remain outside this contract.
| TripState automotive.trip_if.TripIf.finish | ( | self, | |
| datetime | None | ended_at = None ) |
Finish the current trip and return its final snapshot.
| ended_at | Explicit trip end time, or None to use the implementation's current time. |
| None automotive.trip_if.TripIf.observe_ground_motion_state | ( | self, | |
| GroundMotionState | state ) |
Consume one normalized ground-motion snapshot.
| state | Normalized ground-motion snapshot. |
| None automotive.trip_if.TripIf.observe_position_state | ( | self, | |
| PositionState | state ) |
Consume one normalized geographic position snapshot.
| state | Normalized geographic position snapshot. |
| None automotive.trip_if.TripIf.observe_vehicle_state | ( | self, | |
| VehicleState | state ) |
Consume one normalized vehicle telemetry snapshot.
| state | SI-normalized vehicle telemetry snapshot. |
| TripState automotive.trip_if.TripIf.snapshot | ( | self | ) |
Return the current immutable trip snapshot.