Metric: Fan Out

User Description

The Fan Out metric is used to get information about how many outgoing dependencies (reads, writes, calls, and so on) a node in the analysis data model (Dependency Model) has. Outgoing dependency means, that for example, a node is called and another node depends on this node.

Metric Calculation

Each outgoing dependency is considered for a node. A node can be a function block, program, function, variable, library, property, method, task, and so on.

Example

Dependency example (list of dependencies):

FunctionBlockA defines MethodA
FunctionBlockA defines MethodB
FunctionBlockA defines VariableC
FunctionBlockA calls MethodA
MethodA calls MethodB
MethodB reads VariableC

Fan Out Results

Fan Out (FunctionBlockA) = 4
Fan Out (MethodA) = 1
Fan Out (MethodB) = 1
Fan Out (VariableC) = 0