NucuCar/NucuCar.Domain/Sensors/GenericSensor.cs

20 lines
No EOL
618 B
C#

using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using NucuCarSensorsProto;
namespace NucuCar.Domain.Sensors
{
/// <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 NucuCarSensorResponse GetMeasurement();
public abstract SensorStateEnum GetState();
}
}