Package cz.cvut.fel.omo.SmartHome.home
Class Floor
- java.lang.Object
-
- cz.cvut.fel.omo.SmartHome.home.Floor
-
public class Floor extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AbstractActionDevice>
actionDevices
private double
floorTemp
private double
sunshine
private java.util.List<AbstractWeatherDevice>
weatherDevices
private double
windSpeed
-
Constructor Summary
Constructors Constructor Description Floor(double floorTemp, double sunshine, double windSpeed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTemp(double temp)
Creature
findFreeAdultsOnCurrentFloor()
java.util.List<TurnableDevicesInterface>
getTurnableDevices()
private boolean
isTurnable(AbstractActionDevice t)
void
reactToWordChanges(WeatherEvent weatherEvent)
-
-
-
Field Detail
-
weatherDevices
private java.util.List<AbstractWeatherDevice> weatherDevices
-
actionDevices
private java.util.List<AbstractActionDevice> actionDevices
-
floorTemp
private double floorTemp
-
sunshine
private double sunshine
-
windSpeed
private double windSpeed
-
-
Method Detail
-
reactToWordChanges
public void reactToWordChanges(WeatherEvent weatherEvent)
-
findFreeAdultsOnCurrentFloor
public Creature findFreeAdultsOnCurrentFloor()
-
getTurnableDevices
public java.util.List<TurnableDevicesInterface> getTurnableDevices()
-
isTurnable
private boolean isTurnable(AbstractActionDevice t)
-
addTemp
public void addTemp(double temp)
-
-