scram::core::FaultTreeAnalyzer
Fault tree analysis facility with specific algorithms. More...
#include <fault_tree_analysis.h>
Inherits from scram::core::FaultTreeAnalysis, scram::core::Analysis, boost::noncopyable
Public Functions
| Name | |
|---|---|
| const Algorithm * | algorithm() const |
| Algorithm * | algorithm() |
| FaultTreeAnalysis(const mef::Gate & root, const Settings & settings, const mef::Model * model =nullptr)<br>Traverses a valid fault tree from the root gate to collect databases of events, gates, and other members of the fault tree. | |
| const Pdag * | graph() const |
Additional inherited members
Public Functions inherited from scram::core::FaultTreeAnalysis
| Name | |
|---|---|
| virtual | ~FaultTreeAnalysis() =default |
| const mef::Gate & | top_event() const |
| void | Analyze()<br>Analyzes the fault tree and performs computations. |
| const ProductContainer & | products() const |
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() |
Detailed Description
template <class Algorithm >
class scram::core::FaultTreeAnalyzer;Fault tree analysis facility with specific algorithms.
Template Parameters:
- Algorithm Fault tree analysis algorithm.
This class is meant to be specialized by fault tree analysis algorithms.
Public Functions Documentation
function algorithm
inline const Algorithm * algorithm() constReturn: The analysis algorithm for use by other analyses.
function algorithm
inline Algorithm * algorithm()function FaultTreeAnalysis
FaultTreeAnalysis(
const mef::Gate & root,
const Settings & settings,
const mef::Model * model =nullptr
)Traverses a valid fault tree from the root gate to collect databases of events, gates, and other members of the fault tree.
Parameters:
- root The top event of the fault tree to analyze.
- settings Analysis settings for all calculations.
- model The Model containing substitutions if any.
Note: It is assumed that analysis is done only once.
Warning: If the fault tree structure is changed, this analysis does not incorporate the changed structure. Moreover, the analysis results may get corrupted.
The passed fault tree must be pre-validated without cycles, and its events must be fully initialized.
function graph
inline const Pdag * graph() constReturn: Pointer to the PDAG representing the fault tree.
Updated on 2025-11-11 at 16:51:08 +0000
