Documentation
¶
Index ¶
Constants ¶
View Source
const ( WAY_TOO_HOT = 80 TOO_HOT = 70 TOO_COLD = 60 WAY_TOO_COLD = 50 COMFORTABLE = (TOO_HOT + TOO_COLD) / 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentController ¶
type EnvironmentController struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(hardware HVAC) *EnvironmentController
func (*EnvironmentController) Regulate ¶
func (this *EnvironmentController) Regulate()
type HVAC ¶
type HVAC interface {
ActivateHeater()
ActivateBlower()
ActivateCooler()
ActivateHighTemperatureAlarm()
ActivateLowTemperatureAlarm()
DeactivateHeater()
DeactivateBlower()
DeactivateCooler()
DeactivateHighTemperatureAlarm()
DeactivateLowTemperatureAlarm()
IsHeating() bool
IsBlowing() bool
IsCooling() bool
HighTemperatureAlarm() bool
LowTemperatureAlarm() bool
CurrentTemperature() int
}
Click to show internal directories.
Click to hide internal directories.