public class ThermostatSimulation extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ThermostatSimulation.TemperatureListener |
| Modifier and Type | Field and Description |
|---|---|
static double |
KELVIN_ACCURACY |
static double |
KELVIN_PER_SECONDS |
static double |
KELVIN_RAMP |
static double |
UPDATE_INTERVAL |
| Constructor and Description |
|---|
ThermostatSimulation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(@NonNull ThermostatSimulation.TemperatureListener listener) |
double |
getCurrentTemperature() |
void |
removeListener(@NonNull ThermostatSimulation.TemperatureListener listener) |
void |
setTargetTemperature(double targetTemperature) |
public static final double KELVIN_PER_SECONDS
public static final double UPDATE_INTERVAL
public static final double KELVIN_ACCURACY
public static final double KELVIN_RAMP
public void addListener(@NonNull
@NonNull ThermostatSimulation.TemperatureListener listener)
public void removeListener(@NonNull
@NonNull ThermostatSimulation.TemperatureListener listener)
public void setTargetTemperature(double targetTemperature)
public double getCurrentTemperature()
Copyright © 2022 SiLA Java Developers. All rights reserved.