The Number of Methods metric is used to get information about how many methods are attached to a program or a function block.
Each Method attached to a program or function block is considered. Unused Methods are considered too.
Example
Number Of Methods calculation example:
FB_MyAlphaModule
- ACT_InitAxis1 (Action)
- ACT_InitAxis2 (Action)
- UpdateStatus (Method)
- Calculate (Method)
- Enabled (Property)
- Get (Property Get)
- Set (Property Set)
- Status (Property)
- Get (Property Get)
- Set (Property Set)
- SwitchNextState (Transition)
Number Of Methods Result (for variable FB_MyAlphaModule)
Number Of Methods = 2