asil_block
Evaluates final system metrics and determines the achieved ASIL level.
AsilBlock
Evaluates final system metrics and determines the achieved ASIL level.
Calculates Single-Point Fault Metric (SPFM) and Latent Fault Metric (LFM) according to ISO 26262 requirements.
Source code in src/ecc_analyzer/core/asil_block.py
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | |
__init__(name)
Initializes the ASIL calculation block.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The descriptive name of the calculation block. |
required |
Source code in src/ecc_analyzer/core/asil_block.py
26 27 28 29 30 31 32 | |
compute_metrics(lambda_total, final_spfm_dict, final_lfm_dict)
Calculates final ISO 26262 metrics using result dictionaries.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
lambda_total
|
float
|
The total FIT rate of the entire system. |
required |
final_spfm_dict
|
dict[FaultType, float]
|
Dictionary containing final residual and dangerous FIT rates. |
required |
final_lfm_dict
|
dict[FaultType, float]
|
Dictionary containing final latent FIT rates. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
dict[str, Any]: A dictionary containing: - "SPFM" (float): Single-Point Fault Metric. - "LFM" (float): Latent Fault Metric. - "Lambda_RF_Sum" (float): Residual FIT Rate Sum. - "ASIL_Achieved" (str): The determined ASIL level. |
Source code in src/ecc_analyzer/core/asil_block.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | |