The M2Doc services spfMetric and dangerousFailureRate are
available for FMEDA. You can use these to access the SPF (Single Point Fault) and DFR
(Dangerous Failure Rate) metrics respectively in FMEDA worksheets.
Each service takes two parameters, the safety goal and the variant. Note that using
null as a parameter is allowed, but can lead to an NaN (not a
number) result.
Examples
SPF metric for variant x:
{ m:dcSheet.spfMetric(null, dcSheet.variants->at(x)) }
SPF metric for safetyGoalA in variant x:
{ m:dcSheet.spfMetric(safetyGoalA, dcSheet.variants->at(x)) }
DFR metric for variant y:
{ m:dcSheet.dangerousFailureRate(null, dcSheet.variants->at(y)) }
DFR metric for safetyGoalB in variant y:
{ m:dcSheet.dangerousFailureRate(safetyGoalB, dcSheet.variants->at(y))
}