Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Thermostat

A class that controls the thermostat with given values

Hierarchy

  • Thermostat

Index

Constructors

constructor

Properties

cooling

cooling: boolean

currentTemp

currentTemp: number

heating

heating: boolean

rangeTemp

rangeTemp: number

wantedTemp

wantedTemp: number

Methods

getAutomationInfo

  • getAutomationInfo(): boolean[]
  • A method that returns the automation info values

    Returns boolean[]

    A boolean array containing the automation info

setCurrentTemp

  • setCurrentTemp(currentTemp: number): void
  • A method that sets the current temperature variable to the given value

    Parameters

    • currentTemp: number

      Represents the value of the current temperature

    Returns void

setValues

  • setValues(wantedTemp: number, rangeTemp: number): void
  • A method that sets the temperature variables to the given values

    Parameters

    • wantedTemp: number

      Represents the value of the wanted temperature

    • rangeTemp: number

      Represents the value of the range were the temperature is free to move

    Returns void

workThermostat

  • workThermostat(): void
  • A method that calculates the given input and sets the statusses of the automation

    Returns void

Generated using TypeDoc