Class InsideBlinds
- java.lang.Object
-
- cz.cvut.fel.omo.SmartHome.devices.AbstractDevice
-
- cz.cvut.fel.omo.SmartHome.devices.weather.AbstractWeatherDevice
-
- cz.cvut.fel.omo.SmartHome.devices.weather.sun.insideBlinds.InsideBlinds
-
- All Implemented Interfaces:
TurnableDevicesInterface
public class InsideBlinds extends AbstractWeatherDevice
-
-
Field Summary
-
Fields inherited from class cz.cvut.fel.omo.SmartHome.devices.weather.AbstractWeatherDevice
state
-
Fields inherited from class cz.cvut.fel.omo.SmartHome.devices.AbstractDevice
condition, consumption, deviceName, floor, instruction
-
-
Constructor Summary
Constructors Constructor Description InsideBlinds(Floor floor, java.lang.String deviceName, Consumption consumption, WeatherDeviceSetUp weatherDeviceSetUp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consume()
Method calculating consuming of device.boolean
isEntertaining()
Determines if the child can use it or not.void
setState(AbstractWeatherDeviceState state)
void
turnOff()
Method for turning device off.void
turnOn()
Method for turning device on.-
Methods inherited from class cz.cvut.fel.omo.SmartHome.devices.weather.AbstractWeatherDevice
newSetUp, processChanges
-
Methods inherited from class cz.cvut.fel.omo.SmartHome.devices.AbstractDevice
consumes, isBroken, repairDevice
-
-
-
-
Constructor Detail
-
InsideBlinds
public InsideBlinds(Floor floor, java.lang.String deviceName, Consumption consumption, WeatherDeviceSetUp weatherDeviceSetUp)
-
-
Method Detail
-
isEntertaining
public boolean isEntertaining()
Description copied from class:AbstractDevice
Determines if the child can use it or not.- Specified by:
isEntertaining
in classAbstractDevice
- Returns:
- true if can false if not
-
turnOff
public void turnOff()
Description copied from interface:TurnableDevicesInterface
Method for turning device off.
-
turnOn
public void turnOn()
Description copied from interface:TurnableDevicesInterface
Method for turning device on. If device was broken before turning off, then it will broken after turning on.
-
consume
public void consume()
Description copied from class:AbstractDevice
Method calculating consuming of device.- Overrides:
consume
in classAbstractWeatherDevice
-
setState
public void setState(AbstractWeatherDeviceState state)
-
-