Class Electromobile
- java.lang.Object
-
- cz.cvut.fel.omo.SmartHome.devices.AbstractDevice
-
- cz.cvut.fel.omo.SmartHome.devices.action.AbstractActionDevice
-
- cz.cvut.fel.omo.SmartHome.devices.action.common.Electromobile
-
public class Electromobile extends AbstractActionDevice
-
-
Field Summary
-
Fields inherited from class cz.cvut.fel.omo.SmartHome.devices.action.AbstractActionDevice
deviceClassification, state
-
Fields inherited from class cz.cvut.fel.omo.SmartHome.devices.AbstractDevice
condition, consumption, deviceName, floor, instruction
-
-
Constructor Summary
Constructors Constructor Description Electromobile(Floor floor, java.lang.String deviceName, int durationOfUsing, Consumption consumption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEntertaining()
Determines if the child can use it or not.-
Methods inherited from class cz.cvut.fel.omo.SmartHome.devices.action.AbstractActionDevice
action, consume, isFree, isRightDevice, isUsageLimit, setState, updateDuration, usage
-
Methods inherited from class cz.cvut.fel.omo.SmartHome.devices.AbstractDevice
consumes, isBroken, repairDevice
-
-
-
-
Constructor Detail
-
Electromobile
public Electromobile(Floor floor, java.lang.String deviceName, int durationOfUsing, Consumption consumption)
-
-
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
-
-