-
Notifications
You must be signed in to change notification settings - Fork 0
/
dish_handeling.py
54 lines (46 loc) · 1.61 KB
/
dish_handeling.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from dish_type import DishType
class DishHandling(DishType):
def __init__(self, name, dish_type):
super().__init__(dish_type)
self.name = name
self.have_time = True
self.washer_running = False
self.washer_full = False
self.inside_dirty_dishes = False
def put_clean_dished_in_cupboard(self):
print(' Put clean dishes in cupboard')
pass
def turn_on_washer(self):
print(' Turn on dish washer')
pass
def hand_wash_dishes(self):
print(' Hand wash your {}.'.format(self.name))
pass
def place_dished_in_washer(self):
print(' Place {} in {} of dish washer'.format(self.name, self.where_to_put()))
pass
def keep_dishes_with_yourself(self):
print(' Bring back your {} to your desk and NOT put it in sink'.format(self.name))
pass
def get_dish_handling_status(self):
if self.have_time is False:
self.keep_dishes_with_yourself()
pass
else:
if self.washer_running is False:
if self.washer_full is False:
self.place_dished_in_washer()
else:
if self.inside_dirty_dishes is False:
self.put_clean_dished_in_cupboard()
self.place_dished_in_washer()
else:
self.turn_on_washer()
self.hand_wash_dishes()
pass
pass
pass
else:
self.hand_wash_dishes()
pass
pass