Projet_VictorAvecUnK/include/AnalogDevices/AnalogDevice.h

34 lines
680 B
C
Raw Normal View History

2020-05-16 17:13:01 +02:00
//
// Created by camer on 16/05/2020.
//
#include "../../core_simulation.h"
#include "../../mydevices.h"
#ifndef PROJET_VICTORAVECUNK_ANALOGDEVICE_H
#define PROJET_VICTORAVECUNK_ANALOGDEVICE_H
class AnalogDevice : public Device{
protected:
int val;
// temps entre 2 prises de valeurs
int temps;
// valeur de temperature mesuree
public:
AnalogDevice(int val, int temps);
int getVal() const;
int getTemps() const;
};
class AnalogSensor : public AnalogDevice{
public:
AnalogSensor(int val, int temps);
};
class AnalogActuator : public AnalogDevice{
public:
AnalogActuator(int val, int temps);
};
#endif //PROJET_VICTORAVECUNK_ANALOGDEVICE_H