FaultTree v0.1.0 FaultTree.Node View Source
Individual nodes inside of a fault tree.
Link to this section Summary
Link to this section Types
Link to this type
node_type()
View Source
node_type()
View Source
node_type() :: :basic | :or | :and | :atleast | :transfer
node_type() :: :basic | :or | :and | :atleast | :transfer
Logic gate type for a node.
A single node in the fault tree.
id: unique ID for the node
parent: ID of the parent node
type: Gate type for the node
name: Unique name for the node
description: Verbose description of the node
probability: Probability of failure. Calculated for all logic gate types, must be set for :basic
atleast: Tuple of {k,n} for ATLEAST gate calculation. nil
for everything else
children: List of child nodes, used when the tree is built
source: Name of the source node if this is a transfer.