rakhimov / scram

Probabilistic Risk Analysis Tool (fault tree analysis, event tree analysis, etc.)
https://scram-pra.org
GNU General Public License v3.0
133 stars 54 forks source link

MEF Element Attribute Inheritance #231

Closed rakhimov closed 6 years ago

rakhimov commented 6 years ago

The MEF element attributes carry extra data about elements. Moreover, attributes (data) are inherited from containers (fault-trees, event-trees, components, model) by elements defined within those containers. The element definitions can also override attributes.

The MEF attribute inheritance requires keeping track of ancestor-containers to descendant-elements relations. If a container's attribute changes, its descendant-elements' attributes must be updated accordingly (a la prototype).

Required by #193