NucuCar/NucuCar.Sensors/Abstractions/GenericSensor.cs

20 lines
No EOL
650 B
C#

using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
namespace NucuCar.Sensors.Abstractions
{
// TODO: Revisit abstractions and check for bad design.
/// <summary>
/// The GenericSensor is an abstract class, which provides a base for abstracting hardware sensors.
/// </summary>
public abstract class GenericSensor
{
protected ILogger Logger;
protected SensorStateEnum CurrentState;
public abstract void Initialize();
public abstract Task TakeMeasurementAsync();
public abstract SensorResponse GetMeasurement();
public abstract SensorStateEnum GetState();
}
}