Exemplo n.º 1
0
 def __init__(self, Crabs, TID, Type="Human.Circulatory"):
     SBNode.__init__(self, Crabs, TID, Type)
     self.Meta["BloodPressure"] = 0.0  #< The heart pulse rate.
     self.Meta[
         "BloodType"] = self.BloodTypeUnknown  #< The patient's blood type.
     self.Meta["HeartRate"] = 0.0  #< The heart pulse rate.
     Crabs.Push(self)
Exemplo n.º 2
0
    def __init__(self, Crabs, TID, Type="Human.Respiratory"):
        SBNode.__init__(self, Crabs, TID, Type)
        # Inspiratory reserve volume is the amount of air that can be forcefully
        # inspired after a normal inspiration.
        self.IRV = 3.0

        # Tidal volume is tThe volume of air which is circulated through inhalation
        # and expiration during one normal respiration.
        self.TV = 0.5

        # Expiratory reserve volume is the volume of air which can be exhaled
        # forcefully after a normal expiration.
        self.ERV = 1.2

        # Residual volume is the amount of air that remains in the lungs after
        # normal expiration.
        self.RV = 1.2

        self.Description = ""  # A Description of this human's Respiratory system.

        if Sex == "M":
            self.VC = 4.6  #< Vital capacity
            self.IC = 3.5  #< Inspiratory capacity
            self.RFC = 2.3  #< Functional residual capacity
            self.TLC = 5.8  #< Total lung capacity
        elif Sex == "F":
            self.VC = 3.1
            self.IC = 2.4
            self.FRC = 1.8
            self.TLC = 4.2
        Crabs.Push(self)
Exemplo n.º 3
0
 def __init__(self, Crabs, TID, Type = "Human"):
   SBNode.__init__(self, Crabs, TID, Type)
   self.Metadata("Sex", "")         #< The Sex of the person.
   self.Metadata("Height", 0.0)     #< The person's Height.
   self.Metadata("Weight", 0.0)     #< The person's Weight.
   
   # The human's Circulatory system.
   self.Circulatory = SBHumanCirculatory(self, )
   # The human's Respiratory system.
   self.Respiratory = SBHumanRespiratory(Crabs, self.Meta["Sex"])
Exemplo n.º 4
0
 def __init__(self, Crabs, TID, Type = "Device"):
   SBNode.__init__(self, Crabs, TID, Type)
Exemplo n.º 5
0
 def __init__(self, Type="Utility"):
     SBNode.__init__(self, Type)
Exemplo n.º 6
0
 def __init__(self, Parent, Type="Search", TID=0):
     SBNode.__init__(self, Parent, Type, TID)
     TimeOfSearch = time.time()
     self.Members["Created"] = TimeOfSearch
     Crabs.Push(self)
Exemplo n.º 7
0
 def __init__(self, Crabs, TID, Type="Process"):
     SBNode.__init__(self, Crabs, TID, Type)