class_ambulance

 1from utils import Utils
 2import pandas as pd
 3
 4class Ambulance:
 5    """
 6        # The Ambulance class
 7
 8        This class defines an 'Ambulance'; effectively any resource that 
 9        responds to a patient/incident. This includes HEMS, which is a
10        child class of Ambulance.
11
12    
13    """
14    def __init__(self, ambulance_type = "ambulance", callsign = "AMBULANCE"):
15
16        self.mobile = ""
17        self.as_scene = ""
18        self.leaving_scene = ""
19        self.at_hospital = ""
20        self.clear = ""
21        self.stood_down = ""
22
23        self.ambulance_type = ambulance_type
24        self.callsign = callsign
25        
26
27    def what_am_i(self):
28        print(f"I am {self.ambulance_type}")
29
30
31
32# TEST
33# Run on python command line
34
35# from class_ambulance import Ambulance
36# from class_hems import HEMS
37
38# a = HEMS("CC72", "2021-01-01 00:00:00")
39# a.what_am_i()
40
41# b = Ambulance("2021-01-01 00:00:00")
42# b.what_am_i()
43        
44        
class Ambulance:
 6class Ambulance:
 7    """
 8        # The Ambulance class
 9
10        This class defines an 'Ambulance'; effectively any resource that 
11        responds to a patient/incident. This includes HEMS, which is a
12        child class of Ambulance.
13
14    
15    """
16    def __init__(self, ambulance_type = "ambulance", callsign = "AMBULANCE"):
17
18        self.mobile = ""
19        self.as_scene = ""
20        self.leaving_scene = ""
21        self.at_hospital = ""
22        self.clear = ""
23        self.stood_down = ""
24
25        self.ambulance_type = ambulance_type
26        self.callsign = callsign
27        
28
29    def what_am_i(self):
30        print(f"I am {self.ambulance_type}")

The Ambulance class

This class defines an 'Ambulance'; effectively any resource that responds to a patient/incident. This includes HEMS, which is a child class of Ambulance.

Ambulance(ambulance_type='ambulance', callsign='AMBULANCE')
16    def __init__(self, ambulance_type = "ambulance", callsign = "AMBULANCE"):
17
18        self.mobile = ""
19        self.as_scene = ""
20        self.leaving_scene = ""
21        self.at_hospital = ""
22        self.clear = ""
23        self.stood_down = ""
24
25        self.ambulance_type = ambulance_type
26        self.callsign = callsign
mobile
as_scene
leaving_scene
at_hospital
clear
stood_down
ambulance_type
callsign
def what_am_i(self):
29    def what_am_i(self):
30        print(f"I am {self.ambulance_type}")