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
( run in 1.981 second using v1.01-cache-2.11-cpan-5b529ec07f3 )