@@ -10,15 +10,15 @@ class ComputerEquipmentInterface(ABC):
10
10
@property
11
11
@abstractmethod
12
12
def name (self ) -> str :
13
- pass
13
+ """Getter for the property 'name'"""
14
14
15
15
@abstractmethod
16
16
def turn_on (self ):
17
- pass
17
+ """Define functionality for turning on the instance of a computer."""
18
18
19
19
@abstractmethod
20
20
def turn_off (self ):
21
- pass
21
+ """Define functionality for turning of the instance of a computer."""
22
22
23
23
24
24
class MonitorEquipmentInterface (ABC ):
@@ -27,15 +27,15 @@ class MonitorEquipmentInterface(ABC):
27
27
@property
28
28
@abstractmethod
29
29
def name (self ) -> str :
30
- pass
30
+ """Getter for the property 'name'"""
31
31
32
32
@abstractmethod
33
33
def turn_on (self ):
34
- pass
34
+ """Define functionality for turning on the instance of a monitor."""
35
35
36
36
@abstractmethod
37
37
def turn_off (self ):
38
- pass
38
+ """Define functionality for turning off the instance of a monitor."""
39
39
40
40
41
41
class WebcamEquipmentInterface (ABC ):
@@ -44,15 +44,15 @@ class WebcamEquipmentInterface(ABC):
44
44
@property
45
45
@abstractmethod
46
46
def name (self ) -> str :
47
- pass
47
+ """Getter for the property 'name'"""
48
48
49
49
@abstractmethod
50
50
def turn_on (self ):
51
- pass
51
+ """Define functionality for turning on the instance of a webcam."""
52
52
53
53
@abstractmethod
54
54
def turn_off (self ):
55
- pass
55
+ """Define functionality for turning off the instance of a webcam."""
56
56
57
57
58
58
class MacMini (ComputerEquipmentInterface ):
@@ -154,19 +154,19 @@ class EquipmentFactoryInterface(ABC):
154
154
@property
155
155
@abstractmethod
156
156
def employee_equipment_type (self ):
157
- pass
157
+ """A property that defines what class of equipment an employee can get."""
158
158
159
159
@abstractmethod
160
160
def define_monitor (self ) -> MonitorEquipmentInterface :
161
- pass
161
+ """Create an instance that represents a monitor."""
162
162
163
163
@abstractmethod
164
164
def define_webcam (self ) -> WebcamEquipmentInterface :
165
- pass
165
+ """Create an instance that represents a webcam."""
166
166
167
167
@abstractmethod
168
168
def define_computer (self ) -> ComputerEquipmentInterface :
169
- pass
169
+ """Create an instance that represents a computer."""
170
170
171
171
172
172
class RemoteEquipmentFactory (EquipmentFactoryInterface ):
@@ -178,7 +178,7 @@ def define_monitor(self):
178
178
179
179
def define_computer (self ):
180
180
return MacbookAir ()
181
-
181
+
182
182
def define_webcam (self ):
183
183
return Webcam1080p ()
184
184
@@ -190,10 +190,10 @@ class OnsiteEquipmentFactory(EquipmentFactoryInterface):
190
190
191
191
def define_monitor (self ):
192
192
return DualMonitors ()
193
-
193
+
194
194
def define_computer (self ):
195
195
return MacMini ()
196
-
196
+
197
197
def define_webcam (self ):
198
198
return Webcam1080p ()
199
199
@@ -205,10 +205,10 @@ class ExecutiveEquipmentFactory(EquipmentFactoryInterface):
205
205
206
206
def define_monitor (self ):
207
207
return DualMonitors ()
208
-
208
+
209
209
def define_computer (self ):
210
210
return MacMini ()
211
-
211
+
212
212
def define_webcam (self ):
213
213
return Webcam1080p ()
214
214
@@ -220,10 +220,10 @@ class ContractorEquipmentFactory(EquipmentFactoryInterface):
220
220
221
221
def define_monitor (self ):
222
222
return Monitor4k ()
223
-
223
+
224
224
def define_computer (self ):
225
225
return MacMini ()
226
-
226
+
227
227
def define_webcam (self ):
228
228
return Webcam1080p ()
229
229
0 commit comments