InaSAFE Disaster risk assessment tool developed by AusAid and World Bank - Impact Function Registry.
Contact : ole.moller.nielsen@gmail.com
Note
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Bases: object
A simple registry for keeping track of all impact functions.
We will use a singleton pattern to ensure that there is only one canonical registry. The registry can be used by impact functions to register themselves and their GUID’s.
To get the impact functions, please do not use directly from this Registry, but rather user ImpactFunctionManager.
Filter impact function given the hazard and exposure metadata.
Parameters: |
|
---|---|
Returns: | List of impact functions. |
Return type: | list |
Filter impact function by exposure_keywords.
Parameters: |
|
---|---|
Returns: | List of impact functions. |
Return type: | list |
Filter impact function by hazard_keywords.
Parameters: |
|
---|---|
Returns: | List of impact functions. |
Return type: | list |
Get available impact functions from hazard and exposure keywords.
Disabled impact function will not be loaded.
Parameters: |
|
---|
Return IF classes given its metadata key and value.
Parameters: |
|
---|---|
Returns: | impact function classes |
Return type: | list |
Return the class of an impact function given its class name.
Parameters: | name (str) – The class name of the IF. |
---|---|
Returns: | impact function class |
Return type: | safe.impact_functions.base.ImpactFunction |