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