ThermostatAgent

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

Parameters

name

the thread name.

coldThreshold

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

hotThreshold

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

temperature

the starting simulated temperature.