Skip to content

scram::core::ProbabilityAnalysis

Main quantitative analysis class.

#include <probability_analysis.h>

Inherits from scram::core::Analysis, boost::noncopyable

Inherited by scram::core::ProbabilityAnalyzerBase

Public Functions

Name
ProbabilityAnalysis(const FaultTreeAnalysis * fta, mef::MissionTime * mission_time)<br>Probability analysis with the results of qualitative analysis.
virtual~ProbabilityAnalysis() =default
voidAnalyze()<br>Performs quantitative analysis on the supplied fault tree.
doublep_total() const
const std::vector< std::pair< double, double > > &p_time() const
const Sil &sil() const

Protected Functions

Name
mef::MissionTime &mission_time()

Additional inherited members

Public Functions inherited from scram::core::Analysis

Name
Analysis(Settings settings)
virtual~Analysis() =0<br>Abstract class.
const Settings &settings() const
const std::string &warnings() const
doubleanalysis_time() const
voidAddAnalysisTime(double time)<br>Adds time to the total analysis time.
voidAddWarning(std::string msg)<br>Appends a warning message to the analysis warnings.
Settings &settings()

Public Functions Documentation

function ProbabilityAnalysis

cpp
ProbabilityAnalysis(
    const FaultTreeAnalysis * fta,
    mef::MissionTime * mission_time
)

Probability analysis with the results of qualitative analysis.

Parameters:

  • fta Fault tree analysis with results.
  • mission_time The mission time expression of the model.

Precondition: The underlying fault tree must not have changed in any way since the fault tree analysis finished.

function ~ProbabilityAnalysis

cpp
virtual ~ProbabilityAnalysis() =default

function Analyze

cpp
void Analyze()

Performs quantitative analysis on the supplied fault tree.

Precondition: Analysis is called only once.

Postcondition: The mission time expression has its original value.

function p_total

cpp
inline double p_total() const

Return: The total probability calculated by the analysis.

Precondition: The analysis is done.

function p_time

cpp
inline const std::vector< std::pair< double, double > > & p_time() const

Return: The probability values over the mission time in time steps. The empty container implies no calculation has been done.

Precondition: The analysis is done.

function sil

cpp
inline const Sil & sil() const

Return: The Safety Integrity Level calculation results.

Precondition: The analysis is done with a request for the SIL.

Protected Functions Documentation

function mission_time

cpp
inline mef::MissionTime & mission_time()

Return: The mission time expression of the model.


Updated on 2025-11-11 at 16:51:08 +0000