05 Jan 2021 21:04:49 UTC
- Distribution: Analizo
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Testers (0 / 44 / 4)
- KwaliteeBus factor: 1
- License: gpl_3
- Activity24 month
- Download (177.49KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionJOENIO Joenio Costa
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Analizo::Metric::AfferentConnections - Afferent Connections per Class (ACC) metric
The metric calculation is based on the following article and calculates the class connectivity.
Article: Monitoring of source code metrics in open source projects by Paulo Roberto Miranda Meirelles.
See the adaptation of the paragraph about Afferente Connections per Class in the article:
Measures the connectivity of a class. If a class
Ciaccess a method or attribute of a class
Cia client of the supplier class
Ci => Cj. Consider the follow function:
client(Ci, Cj) = 1, if (Ci => Cj) and (Ci != Cj) client(Ci, Cj) = 0, otherwise.
ACC(Cj) = (sum(client(Ci, Cj)), i = 1 to N), where
Nis the total number of system classes. If the value of this metric is large, a change in the class has substantially more side effects, making maintenance more difficult.