Evolving/Factory.pm

filter: Statementstmt 92.3% 12 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 88.8% 16 / 18 CC 1 SCAR 2.2
CC
1
Cov
92%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Evolving/Chromosome.pm ↑ Summary Evolving.pm »
1 package AI::FANN::Evolving::Factory;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use Algorithm::Genetic::Diploid;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use base 'Algorithm::Genetic::Diploid::Factory';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $AUTOLOAD;
7  
8 1 my %defaults = (
9 'experiment' => 'AI::FANN::Evolving::Experiment',
10 'chromosome' => 'AI::FANN::Evolving::Chromosome',
11 'gene' => 'AI::FANN::Evolving::Gene',
12 'traindata' => 'AI::FANN::Evolving::TrainData',
13 );
14  
15 =head1 NAME
16  
17 AI::FANN::Evolving::Factory - creator of objects
18  
19 =head1 METHODS
20  
21 =over
22  
23 =item new
24  
25 Constructor takes named arguments. Key is a short name (e.g. 'traindata'), value is a
26 fully qualified package name (e.g. L<AI::FANN::TrainData>) from which to instantiate
27 objects identified by the short name.
28  
29 =back
30  
31 =cut
32  
33 0 ▶sub new { shift->SUPER::new(%defaults,@_) }
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
34  
35 1 1;
« Evolving/Chromosome.pm ↑ Summary Evolving.pm »