FaultTree v0.1.0 FaultTree.Node View Source

Individual nodes inside of a fault tree.

Link to this section Summary

Types

Logic gate type for a node.

t()

A single node in the fault tree.

Link to this section Types

Link to this type

node_type() View Source
node_type() :: :basic | :or | :and | :atleast | :transfer

Logic gate type for a node.

Link to this type

t() View Source
t() :: %FaultTree.Node{
  atleast: {integer(), integer()} | nil,
  children: [t()],
  description: String.t() | nil,
  id: integer() | nil,
  name: String.t(),
  parent: String.t() | nil,
  probability: Decimal.t() | nil,
  source: String.t() | nil,
  type: node_type()
}

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.