An architect must fit multiple heaters in a large building. In order to make a computer simulation of the heat control of the building, he must be able to represent a series of heaters. Every heater is described by the following information fields: a name of the heater, the current setting of the temperature, the minimum temperature allowed and the maximum temperature allowed. In the simulation, the temperature of a certain heater must be increased or decreased, and one must be able at all times to ask the current temperature of every heater.

Assignment

Make a class Heater that supports the following methods:

Example

>>> machine1 = Heater('radiator kitchen', temperature=20)
>>> machine2 = Heater('radiator living', minimum=15, temperature=18)    
>>> machine3 = Heater('radiator bathroom', temperature=22, minimum=18, maximum=28)
>>> print(machine1)
radiator kitchen: current temperature: 20.0; allowed min: 0.0; allowed max: 100.0
>>> machine2
Heater('radiator living', 18.0, 15.0, 100.0)
>>> machine2.change_temperature(8)
>>> machine2.temperature()
26.0
>>> machine3.change_temperature(-5)
>>> machine3
Heater('radiator bathroom', 18.0, 18.0, 28.0)