Alex Balhatchet > Geo-Coder-Many-0.4 > Geo::Coder::Many::Scheduler::WeightedRandom

Download:
Geo-Coder-Many-0.4.tar.gz

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Geo-Coder-Many-0.46-5

NAME ^

Geo::Coder::Many::Scheduler::WeightedRandom - Weighted random scheduler

DESCRIPTION ^

A scheduler which randomly picks an item from the list, with the probability of each proportional to its weight.

METHODS ^

new

Construct and return a new scheduler for the array of pairs of geocoder names and weights whose reference is passed in.

INTERNAL METHODS ^

_get_next

Overrides the method of the same name from the parent class, and is called by get_next_unique instead.

syntax highlighting: