Esempio n. 1
0
 def __init__(self):
     super(VolcanoPointBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     # A set of volcano names
     self.volcano_names = set()
     self._affected_categories_volcano = []
     self.hazard_zone_attribute = 'radius'
Esempio n. 2
0
    def __init__(self):
        super(ClassifiedPolygonHazardBuildingFunction, self).__init__()
        BuildingExposureReportMixin.__init__(self)

        # Hazard zones are all unique values from the hazard zone attribute
        self.hazard_zones = []
        # Set the question of the IF (as the hazard data is not an event)
        self.question = tr(
            'In each of the hazard zones how many buildings might be '
            'affected?')
Esempio n. 3
0
    def __init__(self):
        super(ClassifiedPolygonHazardBuildingFunction, self).__init__()
        BuildingExposureReportMixin.__init__(self)

        # Hazard zones are all unique values from the hazard zone attribute
        self.hazard_zones = []
        # Set the question of the IF (as the hazard data is not an event)
        self.question = tr(
            'In each of the hazard zones how many buildings might be '
            'affected?')
Esempio n. 4
0
 def __init__(self):
     """Constructor (calls ctor of base class)."""
     super(TsunamiRasterBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     self._target_field = 'depth'
     self.hazard_classes = [
         tr('Dry Zone'),
         tr('Low Hazard Zone'),
         tr('Medium Hazard Zone'),
         tr('High Hazard Zone'),
         tr('Very High Hazard Zone'),
     ]
Esempio n. 5
0
 def __init__(self):
     """Constructor (calls ctor of base class)."""
     super(TsunamiRasterBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     self._target_field = 'depth'
     self.hazard_classes = [
         tr('Dry Zone'),
         tr('Low Hazard Zone'),
         tr('Medium Hazard Zone'),
         tr('High Hazard Zone'),
         tr('Very High Hazard Zone'),
     ]
Esempio n. 6
0
 def __init__(self):
     """Constructor (calls ctor of base class)."""
     super(FloodRasterBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
Esempio n. 7
0
 def __init__(self):
     super(EarthquakeBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     self.is_nexis = False
     self.structure_class_field = None
Esempio n. 8
0
 def __init__(self):
     """Constructor (calls ctor of base class)."""
     super(FloodRasterBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
Esempio n. 9
0
 def __init__(self):
     super(ClassifiedRasterHazardBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     self.affected_field = "affected"
     self.target_field = "hazard"
Esempio n. 10
0
 def __init__(self):
     super(VolcanoPolygonBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     self.volcano_names = tr('Not specified in data')
     self._target_field = 'Hazard'
Esempio n. 11
0
 def __init__(self):
     super(FloodPolygonBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     # The 'wet' variable
     self.wet = 'wet'
Esempio n. 12
0
 def __init__(self):
     super(ClassifiedRasterHazardBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     self.affected_field = 'affected'
     self.target_field = 'hazard'
Esempio n. 13
0
 def __init__(self):
     super(FloodPolygonBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     # The 'wet' variable
     self.wet = 'wet'
Esempio n. 14
0
 def __init__(self):
     super(EarthquakeBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     self.is_nexis = False
     self.structure_class_field = None
Esempio n. 15
0
 def __init__(self):
     super(VolcanoPolygonBuildingFunction, self).__init__()
     BuildingExposureReportMixin.__init__(self)
     # A set of volcano names
     self.volcano_names = set()
     self._target_field = 'Hazard'