Skip to content

scram::mef::MglModel

Multiple Greek Letters model characterizes failure of sub-groups of the group due to common cause. More...

#include <ccf_group.h>

Inherits from scram::mef::CcfGroup, scram::mef::Id, scram::mef::Element, scram::mef::Role, scram::mef::ContainerElement, boost::noncopyable

Additional inherited members

Protected Types inherited from scram::mef::CcfGroup

Name
using std::vector< std::pair< int, Expression * > >ExpressionMap <br>Mapping expressions and their application levels.

Public Functions inherited from scram::mef::CcfGroup

Name
virtual~CcfGroup() =default
const std::vector< BasicEvent * > &members() const
voidAddMember(BasicEvent * basic_event)<br>Adds a basic event into this CCF group.
voidAddDistribution(Expression * distr)<br>Adds the distribution that describes the probability of basic events in this CCF group.
voidAddFactor(Expression * factor, std::optional< int > level ={})<br>Adds a CCF factor for the specified model.
voidValidate() const<br>Validates the setup for the CCF model and group.
voidApplyModel()<br>Processes the given factors and members to create common cause failure probabilities and new events that can replace the members in a fault tree.
Id(std::string name, std::string base_path ="", RoleSpecifier role =RoleSpecifier::kPublic)<br>Constructs an element with an original name.

Protected Functions inherited from scram::mef::CcfGroup

Name
template <class T ,typename... Ts> <br>Expression *Register(Ts &&... args)<br>Registers a new expression for ownership by the group.
template <class T > <br>Expression *Register(std::initializer_list< Expression * > args)
Expression *distribution() const
const ExpressionMap &factors() const

Public Attributes inherited from scram::mef::CcfGroup

Name
constexpr const char *kTypeString <br>Type string for error messages.

Public Functions inherited from scram::mef::Id

Name
const std::string &unique_name(const Element & element)<br>Produces unique name for the model element within the same type.
const std::string &unique_name(const Id & element)
Id(std::string name, std::string base_path ="", RoleSpecifier role =RoleSpecifier::kPublic)<br>Constructs an element with an original name.
const std::string &id() const
std::string_viewid_view() const
std::string_viewfull_path() const
voidid(std::string name)<br>Resets the element ID.

Protected Functions inherited from scram::mef::Id

Name
~Id() =default

Public Types inherited from scram::mef::Element

Name
using ext::linear_set< Attribute, AttributeKey >AttributeMap <br>Unique attribute map keyed with the attribute names.

Public Functions inherited from scram::mef::Element

Name
Element(std::string name)<br>Constructs an element with an original name.
const std::string &name() const
std::string_viewname_view() const
const std::string &label() const
voidlabel(std::string label)<br>Sets the element label.
const AttributeMap &attributes() const
voidAddAttribute(Attribute attr)<br>Adds an attribute to the attribute map of this element.
voidSetAttribute(Attribute attr)<br>Sets an attribute to the attribute map.
const Attribute *GetAttribute(std::string_view name) const
std::optional< Attribute >RemoveAttribute(std::string_view name)<br>Removes an attribute of this element.

Protected Functions inherited from scram::mef::Element

Name
~Element() =default
voidname(std::string name)<br>Resets the element name.

Public Functions inherited from scram::mef::Role

Name
Role(RoleSpecifier role =RoleSpecifier::kPublic, std::string base_path ="")<br>Sets the role of an element upon creation.
RoleSpecifierrole() const
const std::string &base_path() const

Protected Functions inherited from scram::mef::Role

Name
~Role() =default

Protected Functions inherited from scram::mef::ContainerElement

Name
const Element *container() const

Friends inherited from scram::mef::ContainerElement

Name
classContainer

Detailed Description

cpp
class scram::mef::MglModel;

Multiple Greek Letters model characterizes failure of sub-groups of the group due to common cause.

The factor for k-component group defines fraction of failure k or more members given that (k-1) members failed.


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