public void run() {
for (int i = 0; i < floors.length; i++) {
SimThermometer thermometer = floors[i].getThermometer();
Vent vent = floors[i].getVent();
HeatPump pump = floors[i].getHeatPump();
double temperature = thermometer.getReading();
temperature += leakage( temperature );
switch (pump.getState()) {
case HEATING:
temperature += heatingTempuratureDelta( vent, temperature );
break;
case COOLING:
temperature += coolingTempuratureDelta( vent, temperature );