-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathagent.py
35 lines (30 loc) · 858 Bytes
/
agent.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
"""
/**
* Abstract class that consumes the results from a test cit for a specific county
*
* @author Joe McCall; Chris Zahuranec
* @date 4/24/2020
* @info Course CAP5600
*/
"""
from result_consumer import ResultConsumer
class Agent(ResultConsumer):
test_kit_capacity = 0
def __init__(self, counties, test_kit_capacity):
"""
Constructor for the agent
"""
self.counties = counties
self.test_kit_capacity = test_kit_capacity
def distribute_test_kits(self):
"""
Distribute the test kits to the counties for this agent
:return:
"""
raise NotImplementedError("Subclass must implement abstract method")
def consume_result(self, county, date, results):
"""
Default implementation that does nothing
:return:
"""
return