Create an instance of a Thermostat it needs a temperature argument and a range argument initialize the thermostat
Returning half of range set by the constructor
this message returns half of the range
Returning if the thermostat is cooling
this message returns state of the thermostat as a boolean
Returning if the thermostat is heating
this message returns state of the thermostat as a boolean
Getting temperature range
This is inserted to meet Single Responsibility and managing dependencies
this method returns the temperature range as a number
Getting wanted Temperature
This is inserted to meet Single Responsibility and managing dependencies
this method returns the temperature range as a number
Getting temperature range
this method returns the range number
Getting wanted temperature
this method returns the wanted number
Setting the current temperature
this method returns current temperature number
updating the current temperature, it returns an Thermostat result object
this method returns an instance of the interface thermostatResult
Generated using TypeDoc
Thermostat Class
This class contains all methods to create a basic Thermostat.