Projet_VictorAvecUnK/include/DigitalDevices/DigitalDevice.h

33 lines
595 B
C++

//
// Created by camer on 16/05/2020.
//
#ifndef PROJET_VICTORAVECUNK_DIGITALDEVICE_H
#define PROJET_VICTORAVECUNK_DIGITALDEVICE_H
#include "../../core_simulation.h"
#include "../../mydevices.h"
class DigitalDevice : public Device {
protected:
int state;
int temps;
public:
DigitalDevice(int temps);
int getState() const;
int getTemps() const;
};
class DigitalSensor : public DigitalDevice{
public:
DigitalSensor(int temps);
};
class DigitalActuator : public DigitalDevice{
public:
DigitalActuator(int temps);
};
#endif //PROJET_VICTORAVECUNK_DIGITALDEVICE_H