| 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; | |