Proc::BackOff::Linear

Proc::BackOff::Linear is directly inherited from and then modified by overloading the calculate_back_off object method.
Download

Proc::BackOff::Linear Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Daniel Lo
  • Publisher web site:
  • http://search.cpan.org/~dlo/Proc-BackOff-0.01/lib/Proc/BackOff/Linear.pm

Proc::BackOff::Linear Tags


Proc::BackOff::Linear Description

Proc::BackOff::Linear is directly inherited from and then modified by overloading the calculate_back_off object method. Proc::BackOff::Linear is a generic module meant to be directly inherited from and then modified by overloading the calculate_back_off object method.SYNOPSISUsage: use Proc::BackOff::Linear; my $obj = Proc::BackOff::Linear->new( { $slope => 5, x => 'count', b => 0 ); # sequence would be # y = slope * x + b; # 1st failure : 5 * count + b = 5 * 1 + 0 = 5 # 2nd failure : 5 * 2 + 0 = 10 # 3nd failure : 5 * 3 + 0 = 10Overloaded Methodsnew()Check for variables being set:Required: slope. B defaults to 0 x defaults to 'count'calculate_back_off()Returns the new back off value.Requirements:· Perl Requirements: · Perl


Proc::BackOff::Linear Related Software