AI-Pathfinding-OptimizeMultiple
view release on metacpan or search on metacpan
lib/AI/Pathfinding/OptimizeMultiple/ScanRun.pm view on Meta::CPAN
package AI::Pathfinding::OptimizeMultiple::ScanRun;
$AI::Pathfinding::OptimizeMultiple::ScanRun::VERSION = '0.0.17';
use strict;
use warnings;
use 5.012;
use MooX qw/late/;
has iters => ( isa => 'Int', is => 'rw', required => 1 );
has scan_idx => ( isa => 'Int', is => 'ro', required => 1 );
sub clone
{
my $self = shift;
return ref($self)->new(
{
iters => $self->iters(),
scan_idx => $self->scan_idx(),
}
);
}
1; # End of AI::Pathfinding::OptimizeMultiple::ScanRun;
__END__
=pod
=encoding UTF-8
=head1 NAME
AI::Pathfinding::OptimizeMultiple::ScanRun - running scan_idx for certain
iterations.
=head1 VERSION
version 0.0.17
=head1 SYNOPSIS
printf "Run %s for %d iterations.\n",
$scans[$scan_alloc->scan_idx], $scan_alloc->iters;
=head1 DESCRIPTION
A class for scan iterations.
=head1 SLOTS
=head2 $scan_run->scan_idx()
The index of the scan (not the ID/name).
=head2 $scan_run->iters()
Number of iterations it ran.
=head1 METHODS
=head2 my $copy = $scan_run->clone()
Clones the scan.
=head1 SEE ALSO
L<AI::Pathfinding::OptimizeMultiple> .
=head1 AUTHOR
Shlomi Fish, L<http://www.shlomifish.org/> .
=head1 ACKNOWLEDGEMENTS
B<popl> from Freenode's #perl for trying to dig some references to an existing
algorithm in the scientific literature.
=for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
=head1 SUPPORT
=head2 Websites
The following websites have more information about this module, and may be of help to you. As always,
in addition to those websites please use your favorite search engine to discover more resources.
=over 4
=item *
( run in 0.457 second using v1.01-cache-2.11-cpan-f5b5a18a01a )