Analizo

 view release on metacpan or  search on metacpan

lib/Analizo/Metric/AfferentConnections.pm  view on Meta::CPAN


=head1 NAME

Analizo::Metric::AfferentConnections - Afferent Connections per Class (ACC) metric

=head1 DESCRIPTION

The metric calculation is based on the following article and calculates the
class connectivity.

PhD Thesis: I<Monitoramento de metricas de codigo-fonte em projetos de software livre>
by Paulo Roberto Miranda Meirelles.

See the adaptation of the paragraph about Afferent Connections per Class in
the article:

Measures the connectivity of a class. If a class C<Ci> access a method or
attribute of a class C<Cj>, consider C<Ci> a client of the supplier class
C<Cj>, denoting C<< Ci => Cj >>.  Consider the follow function:

  client(Ci, Cj) = 1, if (Ci => Cj) and (Ci != Cj)

lib/Analizo/Metric/AfferentConnections.pm  view on Meta::CPAN

So C<ACC(Cj) = (sum(client(Ci, Cj)), i = 1 to N)>, where C<N> is 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.

=head1 REFERENCES

=over

=item *

L<Monitoramento de metricas de codigo-fonte em projetos de software livre|https://www.teses.usp.br/teses/disponiveis/45/45134/tde-27082013-090242>

=back

=cut

__PACKAGE__->mk_accessors(qw( model analized_module));

sub new {
  my ($package, %args) = @_;
   my @instance_variables = (

t/author-pod-spell.t  view on Meta::CPAN

Shyam
skewness
Soares
src
Taghi
Terceiro
undirected
Monitoramento
código
de
fonte
livre
métricas
projetos
Marques
SC
cc
cf
java
db



( run in 2.329 seconds using v1.01-cache-2.11-cpan-97f6503c9c8 )