scram::core::RiskAnalysis
Main system that performs analyses.
#include <risk_analysis.h>
Inherits from scram::core::Analysis, boost::noncopyable
Public Classes
| Name | |
|---|---|
| struct | Context <br>Provides the optional context of the analysis. |
| struct | EtaResult <br>The analysis results grouped by an event-tree. |
| struct | Result <br>The analysis results binding to the unique analysis target. |
Public Functions
| Name | |
|---|---|
| RiskAnalysis(mef::Model * model, const Settings & settings) | |
| const mef::Model & | model() const |
| void | Analyze()<br>Analyzes the model and performs computations specified in the settings. |
| const std::vector< Result > & | results() const |
| const std::vector< EtaResult > & | event_tree_results() const |
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 |
| double | analysis_time() const |
| void | AddAnalysisTime(double time)<br>Adds time to the total analysis time. |
| void | AddWarning(std::string msg)<br>Appends a warning message to the analysis warnings. |
| Settings & | settings() |
Public Functions Documentation
function RiskAnalysis
cpp
RiskAnalysis(
mef::Model * model,
const Settings & settings
)Parameters:
- model An analysis model with fault trees, events, etc.
- settings Analysis settings for the given model.
Note: The model is not const because mission time and event-tree walk context are manipulated. However, at the end of analysis, everything is reset.
function model
cpp
inline const mef::Model & model() constReturn: The model under analysis.
function Analyze
cpp
void Analyze()Analyzes the model and performs computations specified in the settings.
Note: This function must be called only after full initialization of the model with or without its probabilities.
Precondition: The analysis is performed only once.
function results
cpp
inline const std::vector< Result > & results() constReturn: The results of the analysis.
function event_tree_results
cpp
inline const std::vector< EtaResult > & event_tree_results() constReturn: The results of the event tree analysis.
Updated on 2025-11-11 at 16:51:08 +0000
