Class AbstractWeatherDeviceState
- java.lang.Object
-
- cz.cvut.fel.omo.SmartHome.devices.AbstractState
-
- cz.cvut.fel.omo.SmartHome.devices.weather.AbstractWeatherDeviceState
-
- Direct Known Subclasses:
InsideBlindsBrokenState
,InsideBlindsDownState
,InsideBlindsOffState
,InsideBlindsUpState
,OutsideBlindsBrokenState
,OutsideBlindsDownState
,OutsideBlindsOffState
,OutsideBlindsUpState
,SplitSystemBrokenState
,SplitSystemOffState
,SplitSystemOnState
public abstract class AbstractWeatherDeviceState extends AbstractState
Abstract class for implementing the state pattern
-
-
Constructor Summary
Constructors Constructor Description AbstractWeatherDeviceState()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract 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.-
Methods inherited from class cz.cvut.fel.omo.SmartHome.devices.AbstractState
consume
-
-
-
-
Method Detail
-
processChanges
public abstract 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.- Parameters:
abstractWeatherDevice
- dto
-
-