34 lines
680 B
C
34 lines
680 B
C
|
//
|
||
|
// 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
|