SimulatedLocation _firstPoint
First point.
void RemoveValue(const std::string &key)
Remove a value from the local telemetry cache.
Telemetry Service can subscribe to receive updates from remote nodes on named values.
Simulates linear back-and-forth movement between two points.
std::unique_ptr< std::thread > _thread
Worker thread.
std::atomic< bool > _shouldStop
Stop marker.
void Stop()
Stops updating.
~LinearPathTelemetrySimulator()
Destructor.
A location described by a latitude, a longitude and an altitude.
void Worker()
Worker thread.
std::string _name
Telemetry key.
void RemoveFieldDefinitionForKey(const std::string &key)
Remove a field from the schema.
services::telemetry::Service & _telemetryService
Telemetry service.
std::chrono::seconds _duration
Time it takes to complete one trip.
SimulatedLocation _secondPoint
Second point.
LinearPathTelemetrySimulator(services::telemetry::Service &telemetryService, const std::string &name, SimulatedLocation firstPoint, SimulatedLocation secondPoint, std::chrono::seconds duration)
Constructor.