Class SplitSystemBrokenState
- java.lang.Object
-
- cz.cvut.fel.omo.SmartHome.devices.AbstractState
-
- cz.cvut.fel.omo.SmartHome.devices.weather.AbstractWeatherDeviceState
-
- cz.cvut.fel.omo.SmartHome.devices.weather.temperature.splitSystem.states.SplitSystemBrokenState
-
public class SplitSystemBrokenState extends AbstractWeatherDeviceState
-
-
Constructor Summary
Constructors Constructor Description SplitSystemBrokenState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consume(AbstractDevice device)
Method calculating consuming of device.void
processChanges(AbstractWeatherDevice abstractWeatherDevice)
The method, depending on the temperature of the house and the state of the device, implements a different logic of the device's behavior.
-
-
-
Method Detail
-
consume
public void consume(AbstractDevice device)
Description copied from class:AbstractState
Method calculating consuming of device.- Specified by:
consume
in classAbstractState
-
processChanges
public void processChanges(AbstractWeatherDevice abstractWeatherDevice)
Description copied from class:AbstractWeatherDeviceState
The method, depending on the temperature of the house and the state of the device, implements a different logic of the device's behavior.- Specified by:
processChanges
in classAbstractWeatherDeviceState
- Parameters:
abstractWeatherDevice
- dto
-
-