2019-12-17 19:54:38 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using NucuCar.Domain.Telemetry;
|
|
|
|
|
|
|
|
namespace NucuCar.Domain.Sensors
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The GenericSensor is an abstract class, which provides a base for abstracting hardware sensors
|
|
|
|
/// with telemetry support.
|
|
|
|
/// See: <see cref="ITelemeter"/>
|
|
|
|
/// See: <see cref="GenericSensor"/>
|
|
|
|
/// </summary>
|
|
|
|
public abstract class GenericTelemeterSensor : GenericSensor, ITelemeter
|
|
|
|
{
|
2020-01-26 10:52:09 +00:00
|
|
|
protected bool TelemetryEnabled;
|
2019-12-17 19:54:38 +00:00
|
|
|
public abstract string GetIdentifier();
|
|
|
|
public abstract Dictionary<string, object> GetTelemetryData();
|
2020-01-26 10:52:09 +00:00
|
|
|
public abstract bool IsTelemetryEnabled();
|
2019-12-17 19:54:38 +00:00
|
|
|
}
|
|
|
|
}
|