File Coverage

blib/lib/AI/Pathfinding/OptimizeMultiple/ScanRun.pm
Criterion Covered Total %
statement 11 13 84.6
branch n/a
condition n/a
subroutine 4 5 80.0
pod 1 1 100.0
total 16 19 84.2


line stmt bran cond sub pod time code
1             $AI::Pathfinding::OptimizeMultiple::ScanRun::VERSION = '0.0.17';
2             use strict;
3 2     2   17 use warnings;
  2         6  
  2         85  
4 2     2   10  
  2         5  
  2         57  
5             use 5.012;
6 2     2   34  
  2         8  
7             use MooX qw/late/;
8 2     2   10  
  2         4  
  2         11  
9             has iters => ( isa => 'Int', is => 'rw', required => 1 );
10             has scan_idx => ( isa => 'Int', is => 'ro', required => 1 );
11              
12             {
13             my $self = shift;
14              
15 0     0 1   return ref($self)->new(
16             {
17 0           iters => $self->iters(),
18             scan_idx => $self->scan_idx(),
19             }
20             );
21             }
22              
23             1; # End of AI::Pathfinding::OptimizeMultiple::ScanRun;
24              
25              
26             =pod
27              
28             =encoding UTF-8
29              
30             =head1 NAME
31              
32             AI::Pathfinding::OptimizeMultiple::ScanRun - running scan_idx for certain
33             iterations.
34              
35             =head1 VERSION
36              
37             version 0.0.17
38              
39             =head1 SYNOPSIS
40              
41             printf "Run %s for %d iterations.\n",
42             $scans[$scan_alloc->scan_idx], $scan_alloc->iters;
43              
44             =head1 DESCRIPTION
45              
46             A class for scan iterations.
47              
48             =head1 SLOTS
49              
50             =head2 $scan_run->scan_idx()
51              
52             The index of the scan (not the ID/name).
53              
54             =head2 $scan_run->iters()
55              
56             Number of iterations it ran.
57              
58             =head1 METHODS
59              
60             =head2 my $copy = $scan_run->clone()
61              
62             Clones the scan.
63              
64             =head1 SEE ALSO
65              
66             L<AI::Pathfinding::OptimizeMultiple> .
67              
68             =head1 AUTHOR
69              
70             Shlomi Fish, L<http://www.shlomifish.org/> .
71              
72             =head1 ACKNOWLEDGEMENTS
73              
74             B<popl> from Freenode's #perl for trying to dig some references to an existing
75             algorithm in the scientific literature.
76              
77             =for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
78              
79             =head1 SUPPORT
80              
81             =head2 Websites
82              
83             The following websites have more information about this module, and may be of help to you. As always,
84             in addition to those websites please use your favorite search engine to discover more resources.
85              
86             =over 4
87              
88             =item *
89              
90             MetaCPAN
91              
92             A modern, open-source CPAN search engine, useful to view POD in HTML format.
93              
94             L<https://metacpan.org/release/AI-Pathfinding-OptimizeMultiple>
95              
96             =item *
97              
98             RT: CPAN's Bug Tracker
99              
100             The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN.
101              
102             L<https://rt.cpan.org/Public/Dist/Display.html?Name=AI-Pathfinding-OptimizeMultiple>
103              
104             =item *
105              
106             CPANTS
107              
108             The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution.
109              
110             L<http://cpants.cpanauthors.org/dist/AI-Pathfinding-OptimizeMultiple>
111              
112             =item *
113              
114             CPAN Testers
115              
116             The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
117              
118             L<http://www.cpantesters.org/distro/A/AI-Pathfinding-OptimizeMultiple>
119              
120             =item *
121              
122             CPAN Testers Matrix
123              
124             The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
125              
126             L<http://matrix.cpantesters.org/?dist=AI-Pathfinding-OptimizeMultiple>
127              
128             =item *
129              
130             CPAN Testers Dependencies
131              
132             The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
133              
134             L<http://deps.cpantesters.org/?module=AI::Pathfinding::OptimizeMultiple>
135              
136             =back
137              
138             =head2 Bugs / Feature Requests
139              
140             Please report any bugs or feature requests by email to C<bug-ai-pathfinding-optimizemultiple at rt.cpan.org>, or through
141             the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=AI-Pathfinding-OptimizeMultiple>. You will be automatically notified of any
142             progress on the request by the system.
143              
144             =head2 Source Code
145              
146             The code is open to the world, and available for you to hack on. Please feel free to browse it and play
147             with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull
148             from your repository :)
149              
150             L<http://github.com/shlomif/fc-solve>
151              
152             git clone ssh://git@github.com/shlomif/fc-solve.git
153              
154             =head1 AUTHOR
155              
156             Shlomi Fish <shlomif@cpan.org>
157              
158             =head1 BUGS
159              
160             Please report any bugs or feature requests on the bugtracker website
161             L<https://github.com/shlomif/fc-solve/issues>
162              
163             When submitting a bug or request, please include a test-file or a
164             patch to an existing test-file that illustrates the bug or desired
165             feature.
166              
167             =head1 COPYRIGHT AND LICENSE
168              
169             This software is Copyright (c) 2012 by Shlomi Fish.
170              
171             This is free software, licensed under:
172              
173             The MIT (X11) License
174              
175             =cut