diff options
author | Vratko Polak <vrpolak@cisco.com> | 2018-05-28 11:53:45 +0200 |
---|---|---|
committer | Vratko Polak <vrpolak@cisco.com> | 2018-06-18 12:20:18 +0200 |
commit | a9f251c649a5dea7428a43dc24380077a72dacba (patch) | |
tree | e56e2cae2970968efe5f5ca285feb9f3b8ce2bbc /resources/libraries/python/search/AbstractSearchAlgorithm.py | |
parent | 938a0c9cec6d2177e098653ad398372fb482c36f (diff) |
CSIT-986: Implement proposed MDR improvements
+ Use first intermediate with goal in initial phase.
+ Measure above MRR if that got zero loss.
+ Always prioritizes NDR in internal search.
+ Rename classes.
+ Copy code for standalone PyPI publishing.
- Original files will be deleted after publish.
Change-Id: I5169d602d1e5e35a1894645cd52e70d791871608
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries/python/search/AbstractSearchAlgorithm.py')
-rw-r--r-- | resources/libraries/python/search/AbstractSearchAlgorithm.py | 12 |
1 files changed, 7 insertions, 5 deletions
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]. |