ThermostatAgentKt

constructor(name: String, coldThreshold: Int, hotThreshold: Int, initialTemperature: Int)

Parameters

name

the thread name, forwarded to Thread.

coldThreshold

the temperature at or below which the agent pushes hot air.

hotThreshold

the temperature at or above which the agent pushes cold air.

initialTemperature

the starting value of temperature.