}
private void renderFloors() {
Floor[] floors = simulator.getFloors();
for (int i = 0; i < floors.length; i++) {
Floor floor = floors[i];
JLabel label = labels[i];
label.setText(String.format(
"%2d) %3.2f - pump-%1d %-8s, vent %-8s",
floor.getNumber()+1,
floor.getThermometer().getReading(),
floor.getHeatPump().getId(),
floor.getHeatPump().getState(),
floor.getVent().getState()));
}
}