Depth of Inheritance Tree (DIT)

Title short form

DIT

Categories

Maintainability

Definition

Number of inheritances until a function block is reached that does not extend any other function block

Further information

DIT = Depth of Inheritance Tree

 

Sample:

FUNCTION_BLOCK FB_Base
FUNCTION_BLOCK FB_Sub EXTENDS FB_Base
FUNCTION_BLOCK FB_SubSub EXTENDS FB_Sub

The metric Depth of Inheritance Tree is: