X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2Fsearch%2FAbstractSearchAlgorithm.py;h=538322a42c008e15d7ebb0f17bfe148da047ff69;hp=08f3a6bebc50905ae8828bd704c47e80cbffb44b;hb=a9f251c649a5dea7428a43dc24380077a72dacba;hpb=a3d14e7cf128c5188a4e064042a64333ae64d191 diff --git a/resources/libraries/python/search/AbstractSearchAlgorithm.py b/resources/libraries/python/search/AbstractSearchAlgorithm.py index 08f3a6bebc..538322a42c 100644 --- a/resources/libraries/python/search/AbstractSearchAlgorithm.py +++ b/resources/libraries/python/search/AbstractSearchAlgorithm.py @@ -21,20 +21,22 @@ class AbstractSearchAlgorithm(object): __metaclass__ = ABCMeta - def __init__(self, rate_provider): + def __init__(self, measurer): """Store the rate provider. - :param rate_provider: Object able to perform trial measurements. - :type rate_provider: AbstractRateProvider + :param measurer: Object able to perform trial or composite measurements. + :type measurer: AbstractMeasurer """ - # TODO: Type check for AbstractRateProvider? - self.rate_provider = rate_provider + # TODO: Type check for AbstractMeasurer? + self.measurer = measurer @abstractmethod def narrow_down_ndr_and_pdr( self, fail_rate, line_rate, packet_loss_ratio): """Perform measurements to narrow down intervals, return them. + This will be renamed when custom loss ratio lists are supported. + :param fail_rate: Minimal target transmit rate [pps]. :param line_rate: Maximal target transmit rate [pps]. :param packet_loss_ratio: Fraction of packets lost, for PDR [1].