You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
567 B
25 lines
567 B
package modele;
|
|
|
|
import javafx.beans.InvalidationListener;
|
|
|
|
import java.io.IOException;
|
|
import java.nio.file.Files;
|
|
import java.nio.file.Path;
|
|
|
|
@Deprecated
|
|
public class CpuCapteur extends UnitCapteur{
|
|
|
|
public CpuCapteur(float temperature, String nom) {
|
|
super(temperature,nom, new CpuGenerator());
|
|
}
|
|
|
|
public CpuCapteur(Capteur capteur) {
|
|
super(capteur);
|
|
}
|
|
|
|
@Override
|
|
public void genTemp() throws IOException {
|
|
setTemperature(Float.parseFloat(Files.readString(Path.of("/sys/class/thermal/thermal_zone2/temp"))));
|
|
}
|
|
}
|