Package cz.cvut.fel.omo.SmartHome
Class HomeEmergencyStrategy
- java.lang.Object
-
- cz.cvut.fel.omo.SmartHome.HomeEmergencyStrategy
-
- All Implemented Interfaces:
HomeStrategy
public class HomeEmergencyStrategy extends java.lang.Object implements HomeStrategy
-
-
Field Summary
Fields Modifier and Type Field Description private House
house
private int
timeForResolve
-
Constructor Summary
Constructors Constructor Description HomeEmergencyStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEmergency()
void
mainCycle(java.util.List<Creature> creatures)
-
-
-
Field Detail
-
timeForResolve
private int timeForResolve
-
house
private final House house
-
-
Method Detail
-
mainCycle
public void mainCycle(java.util.List<Creature> creatures)
- Specified by:
mainCycle
in interfaceHomeStrategy
-
isEmergency
public boolean isEmergency()
- Specified by:
isEmergency
in interfaceHomeStrategy
-
-