Class: DeviceControl::Thermostat

Inherits:
Controller show all
Defined in:
lib/device_control.rb

Direct Known Subclasses

Flexstat

Instance Attribute Summary

Attributes inherited from Controller

#measure, #setpoint

Instance Method Summary collapse

Methods inherited from Controller

#initialize, #input=, #to_s

Methods included from Updateable

#update

Constructor Details

This class inherits a constructor from DeviceControl::Controller

Instance Method Details

#outputObject

true or false; can drive a Heater or a Cooler true means input below setpoint; false otherwise



111
112
113
# File 'lib/device_control.rb', line 111

def output
  @setpoint - @measure > 0
end